PDA

View Full Version : Weird problem with AlwaysVisibleControlExtender


lornen
02-18-2008, 07:45 PM
Hi to all,

I did most of my development on VS2008, debugging using Firefox.:thumbsup:

Summary: My AlwaysVisible panel works in Firefox, but not in IE7:eek:!

Details:
On my test.aspx page, I have a panel(pnl1) with an AlwaysVisibleControlExtender. In this panel, I have a textbox that has its text populated from the database during load.

When I get redirected to test.aspx, on IE:eek:, pnl1's alwaysvisible property does not work. However, on Firefox, it works like a charm. On IE:eek:, if I directly access the page(not redirected), the alwaysvisible works....
Whats wrong with the code(or IE:eek:)?

Thanks for taking the time to read.


.collapsePanel {
width: 500px;
height:10px;
background-color:Yellow;
text-align:right;
position:relative;
}
.collapseTextBox
{
border-style: none;
width: 99%;
font-size: 10pt;
font-family: Arial;
background-color:Transparent;
}
<asp:Panel ID="pnl1" runat="server" CssClass="collapsePanel" ScrollBars="Auto">
<asp:Label
ID="lbl1" runat="server" Text="Hide..">
</asp:Label>
<asp:Image ID="imgCollapse" runat="server" ImageUrl="~/Images/minimize.jpg" />
<br />
<asp:TextBox
ID="tbScene" runat="server" TextMode="MultiLine" AutoPostBack="false"
CssClass="collapseTextBox" ReadOnly="true">
</asp:TextBox>
</asp:Panel>
<cc2:CollapsiblePanelExtender
ID="pnl1_CollapsiblePanelExtender"
runat="server" TargetControlID="pnl1" CollapsedSize="18" CollapsedImage="~/Images/maximize.jpg"
ExpandedImage="~/Images/minimize.jpg" TextLabelID="lbl1" ExpandedText="Hide.." CollapsedText="Show.."
ImageControlID="imgCollapse" ExpandControlID="imgCollapse"
CollapseControlID="imgCollapse" SuppressPostBack="true">
</cc2:CollapsiblePanelExtender>
<cc2:AlwaysVisibleControlExtender
ID="pnl1_AlwaysVisibleControlExtender" runat="server"
Enabled="true" TargetControlID="pnl1" VerticalSide="Top" HorizontalSide="Right" >
</cc2:AlwaysVisibleControlExtender>

TheBateman
09-26-2008, 10:38 PM
I am having the same problem. Have you found a solution yet?

Brigzy
02-12-2009, 06:49 PM
Hello,
here is my first post on this forum:)

I have found that is I set 'UseAnimation' to true it then works in IE7.

<ajaxToolkit:AlwaysVisibleControlExtender ID="KeepVisExtender"
runat="server"
TargetControlID="Panel_KeepVis"
ScrollEffectDuration=".1"
HorizontalOffset="0" VerticalOffset="0" UseAnimation="true" >
</ajaxToolkit:AlwaysVisibleControlExtender>


However I don't want the animation as it jumps around horribly when scrolling down the page.

I am on IE 7.0.6001.1800C0

Brigzy
02-12-2009, 07:50 PM
Found the solution :thumbsup:

Include the following in top of your aspx page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

I found the answer here :
http://forums.asp.net/p/1054384/1496634.aspx#1496634

I lost stack of time trying on this one..
Brigzy