J
jobs
1. How can I point the targetControlID of PopulcontrolExtender to the
textbox of a formview?
2. How can I use the same Popup for muliple date textboxes on muliple
forms?
The below code, taken from some codeproject sample, works when it's a
single simple textbox.
I get this error with a formview textbox? Is there a way to qualify in
the markup?
The TargetControlID of 'PopupControlExtender1' is not valid. A control
with ID 'StartDateTextBox' could not be found.
<cc1
opupControlExtender ID="PopupControlExtender1" runat="server"
TargetControlID="RateFormview.StartDateTextBox" PopupControlID="Panel1"
Position="Bottom" />
<asp
anel ID="Panel1" runat="server" CssClass="popupControl">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<center>
<asp:Calendar ID="Calendar1" runat="server"
BackColor="White" BorderColor="#999999" CellPadding="1"
DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
ForeColor="Black" Width="160px" OnSelectionChanged="DatePicker">
</asp:Calendar>
</center>
</ContentTemplate>
</asp:UpdatePanel>
</asp
anel>
== codebehind.
Sub DatePicker(ByVal sender As System.Object, ByVal e As
System.EventArgs)
PopupControlExtender1.Commit(Calendar1.SelectedDate.ToShortDateString())
End Sub
textbox of a formview?
2. How can I use the same Popup for muliple date textboxes on muliple
forms?
The below code, taken from some codeproject sample, works when it's a
single simple textbox.
I get this error with a formview textbox? Is there a way to qualify in
the markup?
The TargetControlID of 'PopupControlExtender1' is not valid. A control
with ID 'StartDateTextBox' could not be found.
<cc1
![Stick Out Tongue :P :P](/styles/default/custom/smilies/tongue.gif)
TargetControlID="RateFormview.StartDateTextBox" PopupControlID="Panel1"
Position="Bottom" />
<asp
![Stick Out Tongue :P :P](/styles/default/custom/smilies/tongue.gif)
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<center>
<asp:Calendar ID="Calendar1" runat="server"
BackColor="White" BorderColor="#999999" CellPadding="1"
DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
ForeColor="Black" Width="160px" OnSelectionChanged="DatePicker">
</asp:Calendar>
</center>
</ContentTemplate>
</asp:UpdatePanel>
</asp
![Stick Out Tongue :P :P](/styles/default/custom/smilies/tongue.gif)
== codebehind.
Sub DatePicker(ByVal sender As System.Object, ByVal e As
System.EventArgs)
PopupControlExtender1.Commit(Calendar1.SelectedDate.ToShortDateString())
End Sub