How Can I get the value of input from URL parameters and use in Form ASP.NET

  asp.net, html, php

How do i Do this in ASP.NET

in php (For instance) I have this HTML Page and I want to use a Url Content
Something like this

http://localhost/?name=Totten&Age=25

In Html (For PHP) Code Looks like this

<!doctype html>
<html>
<?php
$name = $_GET['name'];
$Age = $_GET['Age']
?>
<head>

</head>

<body>
<input type="text" name="name" value="<?php echo $name?;>" />
<input type="Age" name="Age" value="<?php echo $Age?;>" />
<input type="submit" value="submit"/>
</body>
</html>

Now i want to get the same thing in ASP.NET (WebForm)

How is this Done?

Source: Ask PHP

LEAVE A COMMENT