本文介绍了如何在Asp.Net中使用Jquery清除Viewstate属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ASP.NET中使用jQuery将ViewState ["Drivers"]设置为null?

How can i set ViewState["Drivers"] to null using jQuery in ASP.NET ?

ViewState["Drivers"]= null;

推荐答案





现在,在服务器端的update_viewstate动作中,您可以根据需要(在帖子内部)更改ViewState.然后,您也必须更改View,因为View的依赖项已更改,依此类推.所以我想说,这是改变视图属性的la脚方法.您可以根据需要简单地更改HTML内容.



Now, on the server-side inside the update_viewstate action, you can change the ViewState as you want it (inside your post). Then you will have to change the View too, because View''s dependencies have been altered and so on. So I would say, this is a lame method to alter the View''s properties. You can simply change the HTML content if you have to.


这篇关于如何在Asp.Net中使用Jquery清除Viewstate属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 04:39