Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

pageload and set hidden field value in js

$
0
0

when the user visit the page, the popup window will be shown, the user need to click the "Close" button to hide the popup window.

how can i set the hidden value "hiddenfirsttime" to 1 when user click on close button ? and how to check if the hidden field value =1 in page load, if the hidden value =1, then popup window will be hidden in pageload section?

<headrunat="server"><title></title><style>.modal_fade_in {display: block;position: fixed;z-index:999;padding-top:100px;left:0;top:0;width:100%;height:100%;overflow: auto;background-color:rgb(0,0,0);background-color: rgba(0,0,0,0.4);}</style><scriptsrc="Scripts/jquery-3.4.1.min.js"></script><script>
function Closeclick{

$(dialog).hide();

//how to set hidden field value to 1 ?


}
function getCookie(cname){var name = cname +"=";var decodedCookie = decodeURIComponent(document.cookie);var ca = decodedCookie.split(';');for(var i =0; i < ca.length; i++){var c = ca[i];while(c.charAt(0)==' '){ c = c.substring(1);}if(c.indexOf(name)==0){return c.substring(name.length, c.length);}}return"";}});</script></head><body><formid="form1"runat="server">
<lable id="hiddenfirsttime" value="0" type="hidden" /><divid="Dialog"class="modal_fade_in"tabindex="-1"role="dialog"hidden="hidden"aria-labelledby="tafDialog"/>
<asp:ButtonID="loginOut"OnClick="Closeclick()"runat="server"Text="Close"/></form></body>



Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>