R
Rickey Whitworth
I have a gridview control with an edit template for a field called
ScheduledDate. When the Edit button is clicked on the row, I want to present
the user with a link beside ScheduledDate that pops up a client side
calendar. I can do this easily outside of the Gridview with script similar
to the following:
<a href="#"
onclick="calPopup.select(document.forms[0].elements['<%=txtScheduledDate.ClientID
%>'],'anchorScheduled','MM/dd/yyyy');return false;"id="anchorScheduled">
The main point is that I can reference the client side control using
<%=txtScheduledDate.ClientID%>
How do I do this inside of the edit template. My only thought was to access
it like this.
<%=Gridview1.SelectedRow.FindControl(txtScheduledDate).ClientID %>
But this didn't work. Any suggestions.
ScheduledDate. When the Edit button is clicked on the row, I want to present
the user with a link beside ScheduledDate that pops up a client side
calendar. I can do this easily outside of the Gridview with script similar
to the following:
<a href="#"
onclick="calPopup.select(document.forms[0].elements['<%=txtScheduledDate.ClientID
%>'],'anchorScheduled','MM/dd/yyyy');return false;"id="anchorScheduled">
The main point is that I can reference the client side control using
<%=txtScheduledDate.ClientID%>
How do I do this inside of the edit template. My only thought was to access
it like this.
<%=Gridview1.SelectedRow.FindControl(txtScheduledDate).ClientID %>
But this didn't work. Any suggestions.