Current project requires that I pass a value that someone typed in via a RadDateInput textbox to the radWindow that will launch when a user clicks on the link button. Maybe I am getting confused with the controls and would appreciate some direction. Below is my code.
When a user clicks btnAddStmt it will launch the radWindow and I would like to pass the value. What I also would like to do is validate that _new_period is not blank otherwise there is no need to pop-up the window. Can't seem to have it perform validation client-side and still have things work.
<script type="text/javascript"> //<![CDATA[ function openRadWin() { radopen("ManageFS.aspx?cycle_date=" + radDateInput1, "RadWindow1"); } //]]> </script><td style="text-align: center;"> New statement cycle date <strong>(mm/dd/yyyy)</strong>: <telerik:RadDateInput ID="_new_period" runat="server" Width="100px" InvalidStyleDuration="100" CssClass="InputText" DateFormat="MM/dd/yyyy" DisplayDateFormat="MM/dd/yyyy"> </telerik:RadDateInput></td><td style="text-align: center;" class="side"> <asp:LinkButton ID="btnAddStmt" runat="server" Visible="false">Add Statement</asp:LinkButton></td>
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Session("site_member_type") = 1 Then
btnAddStmt.Visible = True
Me.btnAddStmt.Attributes.Add("onclick", "openRadWin(); return false;")
Me.pnlHideViews.Visible = True
End If
end sub