Click here to Skip to main content
12,349,554 members (26,425 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
I am working on asp.net , c sharp code
In my code when any particular condition is true, I need to fetch data from database and need to show in popup.
I have created ModalPopupExtender which contains datagrid and some labels
I bring the data in dataset and bind this data to datagrid.
But whenever page load occurs this popup blinks with blank data.
How to hide this ModalPopupExtender on pageload from code behind.
I have tried with ModalPopupExtender.Hide(), but it did not worked
Please help...
Posted 23-Nov-12 4:54am
Comments
VinodKhanna 23-Nov-12 11:06am
   
I have solved it
aspnet_regiis -i 23-Nov-12 12:44pm
   
good...

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

use

if (!IsPostBack)
{

}


in page load,
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 4 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100