Making a html input button invisible
-
Hi, I have a html button btnBroadcast on my page on click of which i am opening a popup window. When i login i check for user access which can have a value of true and false.I store this value in a session variable and depending on whether the session value is true or false i have to make the html input button "btnBroadcast" visible or hidden. Does anybody know how to do it. Thanks, riz
-
Hi, I have a html button btnBroadcast on my page on click of which i am opening a popup window. When i login i check for user access which can have a value of true and false.I store this value in a session variable and depending on whether the session value is true or false i have to make the html input button "btnBroadcast" visible or hidden. Does anybody know how to do it. Thanks, riz
hum?
btnBroadcast.Visible = (bool)Session["value"];
??Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
Hi, I have a html button btnBroadcast on my page on click of which i am opening a popup window. When i login i check for user access which can have a value of true and false.I store this value in a session variable and depending on whether the session value is true or false i have to make the html input button "btnBroadcast" visible or hidden. Does anybody know how to do it. Thanks, riz
write runat="server" in button tag and access by button name in code behind. after accessing that button use visible property to hide that button
God Bless you. Always do good to others
-
hum?
btnBroadcast.Visible = (bool)Session["value"];
??Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
Yes. need to add "
RunAt="Server"
"Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
Hi, I have a html button btnBroadcast on my page on click of which i am opening a popup window. When i login i check for user access which can have a value of true and false.I store this value in a session variable and depending on whether the session value is true or false i have to make the html input button "btnBroadcast" visible or hidden. Does anybody know how to do it. Thanks, riz
write a java script function i.e., function window.onload() { var sessionValue = '<%=Session["sessionname"]%>'; if(sessionValue != null) { document.getElementById("btnBroadcast").style.visibility="hidden"; } }
regards GV Ramana