What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 11750 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > Popup show and hide from both server side and client side ...
Donraza007@Gmail.Com

Popup show and hide from both server side and client side

Replies: 2 | Posted by: Donraza007@Gmail.Com on 7/20/2012 | Category: ASP.NET Forums | Views: 526 | Status: [Member] | Points: 10  


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.


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Kamalakanta.Nayak09
Kamalakanta.Nayak09  
Posted on: 7/20/2012 11:08:40 AM
Level: Starter | Status: [Member] | Points: 25

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

Thanks,
K.K

Donraza007@Gmail.Com, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Donraza007@Gmail.Com
Donraza007@Gmail.Com  
Posted on: 7/20/2012 11:33:06 AM
Level: Starter | Status: [Member] | Points: 25

No no that's not i want

Donraza007@Gmail.Com, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/25/2013 3:07:38 AM