@{ ViewBag.Title = "Index"; } <h2>Index</h2> <form action="" method="post"> <p style="float:left;">Message: </p> <input type="text" name="message" style="float:left;" /> <br /><br /> <input type="submit" value="submit" /> </form> @{ var message = ""; if (IsPost) { message = Request["message"]; <p> @message </p><br /> } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)