Pop Up close when postback occurs

Posted by Alok under ADO.NET on 8/18/2013 | Points: 10 | Views : 1319 | Status : [Member] | Replies : 2
i want to open entrire gridview inside modalpopup, and also i want pop up should not be closed when any postback occurs inside gridview like chage in ddl..Actually problem is that my popup close when any postback occurs.please provide suitable code example...coz i have alrady tried lots of
code but none of these works..

Thanks & Regards,
Alokssm



Responses

Posted by: Allemahesh on: 8/20/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Dear Alokssm,
This is very common problem. Below is the solution.
You need to add modalpopupID.Show(); method at the end of each event in c#.

Example:
If you firing Gridview_rowcommand() event then add the modalpopupID.Show(); method at end of this event.

Happy coding.

Alok, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Snaveen on: 2/14/2014 [Member] Starter | Points: 25

Up
0
Down
That is bydefault nature of modalPopup, To overcome the above issue when the postback occurs then you just focus to your modalpopup by using below lines of code.

modalpopup.Show();


Alok, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response