Hi Friends,
I am developing an application in asp.net. Here i have an input form to take student details.
Problem here is when user enters few of text boxes and try to go to other pages by clicking on menu, selected pages will be opened and data in student input form will be lost.
Here I need to provide an warning message in such case. How can i do this.
Thanks in advance
About navigation problem in asp forms
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Madhu KRank #1,514 · 1.1K reputationPosted Aug 10, 2010, 3:41 AM EDT
Try this:
In the CodeBehind:private void Page_Load(object sender, System.EventArgs e)
{
RegisterOnSubmitStatement("OnSubmitScript", "g_isPostBack = true;");
}
check this link it may help you
http://www.4guysfromrolla.com/webtech/100604-1.shtml
Koteswararao MallisettiRank #2,740 · 511 reputationPosted Aug 9, 2010, 10:12 PM EDT
in the other pages write the if condition checks for whether that cookie have the value or not if it have the value then ok otherwise redirect to source means form which the request came redirect itself .
if it is suitable to your problem then click the accept symbol