开发者

How to store data between postBack in asp mvc application

I have a master page in asp.mvc application. On this master page I have on开发者_如何学Pythone hidden field which value should be saved between the postback. How Can I achieve it?

thanks,


How Can I achieve it?

This will depend on how you are performing those postbacks. One possibility would be to simply include it inside the form that you are posting. Another possibility is to use javascript and subscribe for the .submit event of your form and inside read the value of the hidden field and for example append it inside another hidden field to the current form or to the query string so that its value is sent to the server. There might also be other solutions. All will depend on your specific scenario and requirements.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜