Popup show and hide from both server side and client side

Posted by donraza007-15388 under ASP.NET on 7/20/2012 | Points: 10 | Views : 1775 | Status : [Member] | Replies : 2
I have a popup div to which i am showing that from server side. I want to hiding that popup from client side. Any suggestion please feel free to share.
My code is given below:-

design page
------------------------
<div id="Popupdiv" runat="server" class="popupwindow" visible="false">
<img alt="" src="../images/close.png" onclick="f1();" />
</div>

javascript
--------------------------
function f1()
{
div1 = document.getElementById('<%=Popupdiv.ClientID%>')
div1.style.visibility="hidden";
}

code behind
------------------------------------------
Popupdiv.Visible = true;


It works fine but measure problem is for every post back that popup div displying automatically.




Responses

Posted by: Kamalakanta.Nayak09 on: 7/20/2012 [Member] Starter | Points: 25

Up
0
Down
<div id="Popupdiv" runat="server" class="popupwindow" visible="false" style="Display:none">

Thanks,
K.K

donraza007-15388, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: donraza007-15388 on: 7/20/2012 [Member] Starter | Points: 25

Up
0
Down
No no that's not i want

donraza007-15388, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response