I noticed that this would work if i don't use Request["name"];
But obviously I need to get the information from my form. I want to display the 'name' in a confirmation message. I am using visual studio asp.net empty webapp
This is the razor code
@{
string title = "This is the title";
string name = "";
if (IsPost)
{
name = Request["name"];
string email = Request["email"];
string message = Request["message"];
}
}
<p>@name</p>
let me know if i should include any other code, but i think this is all you need to see.