How can I save asp:HiddenField value across postback?

前端 未结 8 1652
Happy的楠姐
Happy的楠姐 2020-12-06 12:36

How can I save asp:HiddenField value across postback?

8条回答
  •  春和景丽
    2020-12-06 12:58

    
        
             
        
    
    

    If you change the hidden fields value using JQuery and after that the page get refreshed, the hidden fields value will be the new value. now access the same using JQuery.

    var currentTab = $('#hdnFld').val();
    

提交回复
热议问题