By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,528 Members | 1,345 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,528 IT Pros & Developers. It's quick & easy.

ASP.NET Ajax ModalPopupExtender Control flicker during postback

P: 56
Hi all,

First of all I've searched the net but with no luck. My problem is I have a master/detail webform. i.e. the user clicks a record from the list and I show a modalpopup with the data. Here the user can edit this data. Apart from clientside validation I have some server validation (which I need).
In the (server) Click event of the submit LinkButton I have the following:
Expand|Select|Wrap|Line Numbers
  1. protected void lbtnSave_Click(object sender, EventArgs e)
  2.         {
  3.             if (Page.IsValid)
  4.             { 
  5.                         //save changes    
  6.             }
  7.             else
  8.             {
  9.                 //show the popup again since after postback it is hidden
  10.                 modalPopupExtender.Show();
  11.             }
  12.         }
Everything, like the validator values remain there which is as I need it and all the functionality is there. The only problem I have is there is a flicker after postback.

I tried putting it all into an UpdatePanel but with no luck.

Is there a way I could make a partial postback or maybe call postback from clienside? If yes could you please explain how this could be done? Also any code snippets are very welcome (I'm quite new to AJAX, especially Javascript)

Thanks
Luk
Jun 17 '08 #1
Share this Question
Share on Google+
3 Replies


P: 56
Anyone please? Any help will be appreciated

Thanks
Luk
Jun 18 '08 #2

acoder
Expert Mod 15k+
P: 16,027
I'm not sure what might be causing the flickering - you may have better luck in the .NET forum. However, if you want to implement some Ajax code to avoid reloading the page, I can help. See the tutorial links in the Offsite Links sticky thread (top of the page) to get you started.
Jun 18 '08 #3

P: 56
I'm not sure what might be causing the flickering - you may have better luck in the .NET forum. However, if you want to implement some Ajax code to avoid reloading the page, I can help. See the tutorial links in the Offsite Links sticky thread (top of the page) to get you started.
Thanks for your help. I'll check the asp.net forum first then check the links.
Regards
Luk
Jun 18 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.