I have a problem with a such simple thing as to get values from the Request.Form collection.
I created ASP.NET application using VS.NET and C# as a programming language. On the first webform I have <form id="test"> with the two textfields and one <asp:button>.
Within the button event I have
When I am trying to retrieve values from the "test" form in the "NameOfThePage.aspx" webform by using:
var = Context.Request.Form.Get("textBox1").ToString();
it gives me an error message in this line.
The error message is:
Object reference not set to an instance of an object
Could anyone explain me what is going on here.
Your help is very much appreciated.