2012年3月21日水曜日

RoundedCornersExtender and DropDownList Causing Update Panel to Flash

I have run into a problem when I use the RoundedCornersExtender on an updatepanel. Everything functions as expected unless a DropDownList is contained on the container the RoundedCornersExtender is being applied to. If I place a DropDownList on the Div, on any partial post back, the entire page flashes. It still performs only a partial postback, but it appears that the entire page is being re-rendered. In this simple example it is only the update panel, but on my larger page (multiple divs, tables, etc) it seems all objects on the page flash.

Any help would be appreciated.

In Firefox, it seems to work fine, but I seem to be able to reproduce this problem with ease in Internet Explorer 6.

In my sample code, I have a button that does a simple postback and increments the count displayed in the label by 1.

<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<cc1:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" Radius="6" Color="Blue" TargetControlID="MyContentDiv" />

<div id="MyContentDiv" runat="server" style="background-color: Red">

This is my content inside the div.

<asp:DropDownList ID="DropDownList1" runat="Server" />

</div>

<asp:Label ID="lblCounter" runat="Server">0</asp:Label>

<asp:Button ID="cmdCount" runat="server" OnClick="cmdCount_Click" Text="Count"></asp:Button>

</ContentTemplate>

</asp:UpdatePanel>

protected void cmdCount_Click(object sender, EventArgs e)
{
int tmpVal = 0;
int.TryParse(this.lblCounter.Text,out tmpVal);
tmpVal++;
this.lblCounter.Text = tmpVal.ToString();
}

Feel a little sheepish on this one. I incorrectly assumed that because it was so specific to having drop downs, something really screwy was going on. This was solved with the whole Setting Debug=False Solutions.

Cheers


Ok, now maybe I am going crazy. It seems to be happening again... Has anyone else been able to reproduce this problem?
I am having the same issue, roundedcornersextender or dropshadowextender with rounded corners are both causing the entire screen to flash when a dropdownlist or listbox are on the page. This must be a bug, I am using beta2, removing the rounded corners makes it go away
hey I am also getting same issue...any update on this?

Hi,

I am also having this problemCrying, hope someone from asp.net team or Microsoft ASP.NETAJAX team member will look into this problem seriously.

Kind Regards,

Dev


I'm just going to chime in for a October 2007 update that I am having this problem as well...

RoundedCornersExtender causes this same problem in my app... All that is in my UpdatePanel is a Gridview. Everything works as expected in Firefox 2.0.0.7 but I get the flash/reload with Internet Explorer 6.0.29. After this happens the Gridview is hidden from the screen. If I remove the RoundedCornersExtender, everything works fine.


By the looks of it, this seems to be a common issue. I'm using an updatepanel with the collapsiblepanel and it works great! Now, if I add any type of changing control such as a DropDownList or ListBox, the flashing beginsConfused. I came up with an alternative for the dropdownlist which was a navigational menu; bad idea! I click on the menu and all the other menus become frozen or won't refresh. So canned that idea. At this point I'm ready to trash the whole thing and start from scratch, let the whole thing flash! I hope this can be figured out.

JZee

0 件のコメント:

コメントを投稿