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
Loading
Madhu KPosted Aug 10, 2010, 7:41 AM
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 MallisettiPosted Aug 10, 2010, 2:12 AM
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