开发者

Asp.net Problem while pressing back button of browser

开发者 https://www.devze.com 2022-12-25 00:50 出处:网络
I have two page one is login and second is attendance.. In attendance page there is 开发者_开发百科two button In and Out visible any one of them at a time..

I have two page one is login and second is attendance..

In attendance page there is 开发者_开发百科two button In and Out visible any one of them at a time.. while i am pressing back button it navigates to previous button instead of previous page. plz give me solution for this..


That is the previous page, when you click the buttons it is doing a postback which is basically posting the form. When you hit back after posting a form, it goes to the previous page you were on, which is the form before posting. To fix this, you can use JavaScript behind the buttons instead of using the asp.net postbacks. It's hard to say exactly what you would need to do from that point without more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消