Click here to Skip to main content
Rate this: bad
good
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 at 23-Nov-12 11:06am
   
I have solved it
aspnet_regiis -i at 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
0 OriginalGriff 6,696
1 Sergey Alexandrovich Kryukov 6,675
2 CPallini 5,315
3 George Jonsson 3,584
4 Gihan Liyanage 2,650


Advertise | Privacy | Mobile
Web01 | 2.8.140921.1 | Last Updated 4 Dec 2012
Copyright © CodeProject, 1999-2014
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