Ive made a page application.aspx which inherits trader.master... Now in the trader.master masterpage file Ive added a menu control which compulsarily needs a form to run... Now I cannot add a form in application.aspx as it gives me an error
Page can have only one server-side form element.
So im stuck with using the form on the master page... but when I use the postbackURL="~/applicaationprint.aspx"... I suppose it should postback the data to applicationprint.aspx
now in my applicationprint code behind file:
Code:
string appno = Request.Form["ApplicationNummberTextBox"].ToString();
ResultApplicationNumber.Text = appno;
Gives me a
System.NullReferenceException
all the time.. It does not pass variables at all....
It works fine if I remove the masterpage.
Please Help