No, it isn't.
Main Topics
Browse All TopicsI have a calendar extender that have as a targetcontrolid a textbox.
When the page is loaded I assign the current date to the calendar and it updates to the textbox.
I select another date in the calendar and it is updated also in the textbox, but when I try to take the value from the textbox or from the calendar(calendar.selected
This is the code:
<asp:TextBox runat="server" ID="txtDate" CssClass="TextGen" Height ="15px" Width="80px" />
<asp:ImageButton runat="server" ID="Image1" ImageUrl="~/Images/Calenda
<cc1:CalendarExtender ID="calDate" runat="server" TargetControlID="txtDate"
PopupButtonID="Image1" PopupPosition="TopLeft" Enabled="True" Format="dd/MMM/yyyy" />
Here the current date is assigned in page_load
Dim defaultdate As New Date(year, month, day)
calFechaInicioOp.SelectedD
I try to get its value:
varDate = calFechaInicioOp.SelectedD
and it give the firstdate not the updated, same happens if I use the textbox,
They looks updated in the page, but their real value is the first assigned.
Thanks for your help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I tryied with your suggestion and although the calendar looks updated its real value isn't.
I write:
<asp:UpdatePanel id="updFecha" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<td class="LabelGen">
<asp:Label ID="lblFechaOP" runat="server" Text="Fecha de inicio de operaciones:" style="left:0px; position:relative; top: -4px"></asp:Label>
</td>
<td class="TextGen">
<asp:TextBox runat="server" ID="txtFechaInicioOp" CssClass="TextGen" Height ="15px" Width="80px" Enabled ="False"/>
</td>
<td class="TextGen" style="position:static">
<asp:ImageButton runat="server" ID="Image1" ImageUrl="~/Images/Calenda
<cc1:CalendarExtender ID="calFechaInicioOp" runat="server" TargetControlID="txtFechaI
PopupButtonID="Image1" PopupPosition="TopLeft" Enabled="True" Format="dd/MMM/yyyy" />
</td>
</ContentTemplate>
</asp:UpdatePanel>
as I am using the tookscriptmanager it didn't allow to set another.
Before I call the date value of the callendar I write:
updFecha.Update()
But debugging its value it is not updated.
Is there something missing?
Thanks in advance!
And the calendar remains with the value assigned
Business Accounts
Answer for Membership
by: naspinskiPosted on 2008-06-05 at 19:16:27ID: 21725719
Is it located in an updatePanel?