C# .NET - how to stop asp.net get blinking if i give dropdownlist postback=true?

Asked By Giri s on 26-Jun-12 09:44 AM
in my asp.net web page get blinking after i gave dropdownlist postback=true..how to stop that blinking if i give dropdownlist postback=true(its must for my pag)?????? 
Jitendra Faye replied to Giri s on 26-Jun-12 09:51 AM
Use UpdatePanel like this-

 <asp:UpdatePanel ID="updBeerCat" runat="server">
          <asp:DropDownList ID="DropDownList2" runat="server" OnTextChanged="drp_SelectedIndexChanged"
            OnSelectedIndexChanged="drp_SelectedIndexChanged" AutoPostBack="true">
            <asp:ListItem>1 </asp:ListItem>
            <asp:ListItem>2 </asp:ListItem>

dipa ahuja replied to Giri s on 26-Jun-12 01:57 PM
The meaning of the property postback is to refresh the page. So if you set the property to true it get refresh the page.

If you put the control inside the update panel then also it will refresh the portion inside the update panel.
Vikram Singh Saini replied to Giri s on 26-Jun-12 09:11 PM
Your problem appears somewhat same as http://www.eggheadcafe.com/community/asp-net/17/10460532/user-controls-dropdown-causing-full-postback-inside-updatepanel.aspx

So in that case I would recommend you to register the dropdownlist control as asyncpostback control in Page_Load as:


Let us know if it helped or not.