G
Guest
Hello,
I am developing an asp.net website. I have a web fomr say'
webform1.aspx' having two input button html controls. When I click on
'button1' a message appears. Following code is executed o client side
button1_click( )
{
document.webform1.submit( );
}
and on server side the message is assigned th a label in page_load method.
When a user clicks on other control, the page is redirected to other webform
say' webform2.aspx'.
The problem is as follows -
Now when I click on 'button1' for the first time, I get the message printed
on the label.Then when I click on 'button2', webform2.aspx is also displayed
but now if I click the 'Back' menu of the browser, I again get
'webform1.aspx'. Now if I click on 'button1' again then instead of displaying
text message on the label the page redirects to Webform2.aspx'.
Can any one help me to solve the problem
Thanks,
Sushi
I am developing an asp.net website. I have a web fomr say'
webform1.aspx' having two input button html controls. When I click on
'button1' a message appears. Following code is executed o client side
button1_click( )
{
document.webform1.submit( );
}
and on server side the message is assigned th a label in page_load method.
When a user clicks on other control, the page is redirected to other webform
say' webform2.aspx'.
The problem is as follows -
Now when I click on 'button1' for the first time, I get the message printed
on the label.Then when I click on 'button2', webform2.aspx is also displayed
but now if I click the 'Back' menu of the browser, I again get
'webform1.aspx'. Now if I click on 'button1' again then instead of displaying
text message on the label the page redirects to Webform2.aspx'.
Can any one help me to solve the problem
Thanks,
Sushi