ASP.NET Ajax ModalPopupExtender Control flicker during postback

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pechar
    New Member
    • Jan 2008
    • 56

    ASP.NET Ajax ModalPopupExtender Control flicker during postback

    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:
    Code:
    protected void lbtnSave_Click(object sender, EventArgs e)
            {
                if (Page.IsValid)
                { 
                            //save changes    
                }
                else
                {
                    //show the popup again since after postback it is hidden
                    modalPopupExtender.Show();
                }
            }
    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
  • pechar
    New Member
    • Jan 2008
    • 56

    #2
    Anyone please? Any help will be appreciated

    Thanks
    Luk

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      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.

      Comment

      • pechar
        New Member
        • Jan 2008
        • 56

        #4
        Originally posted by acoder
        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

        Comment

        Working...