Showing posts with label ltasplabel. Show all posts
Showing posts with label ltasplabel. Show all posts

Wednesday, March 21, 2012

CalendarExtender problem in format and position

i have a page contain CalendarExtender

.....

<li id="liDate" runat="server">
<asp:Label ID="lblDate" runat="server" AssociatedControlID="txtRegDate" Text="Date"></asp:Label>
<asp:TextBox ID="txtDate" runat="server" Enabled="false"></asp:TextBox>
<asp:ImageButton ID="imgbtnDate" runat="server" AlternateText="Click to show calendar" ImageUrl="~/images/Calendar.png" CausesValidation="false"></asp:ImageButton>
<ajaxToolkit:CalendarExtender ID="calendarExtenderDate" runat="server" TargetControlID="txtDate" PopupButtonID="imgbtnDate" Enabled="True">
</ajaxToolkit:CalendarExtender>
<asp:RequiredFieldValidator ID="ReqValDate" runat="server" ControlToValidate="txtDate" Display="Dynamic" ErrorMessage="Required" Text="Required" Visible="false">
</asp:RequiredFieldValidator>
</li>

......

when i click on image btn, it show th calendar but weird format , and even the position that the calendar pop up not below the Tartger txt that i set.

But it is so weird if i do something that postback of this page the format and position become correct . WEIRD BUGTongue Tied, need some help

Tks in advance

I get the lastest AjaxControlToolkit already, the Sep 1.0.109... version

Hi Conga,

I have tested your sample on my machine. <asp:Label ID="lblDate" runat="server"AssociatedControlID="txtRegDate"Text="Date"></asp:Label> I get a compile error when remove the Bold part. It works great. I use V10920 + VS2008. So would you please do a double check? If it doesn't work, please show me the whole sample.The more information you provided , the more easy we can find out the exact root cause.

Best regards,

Joanthan