Hai all,
I am using EWorld DLL for Calender Control.
How i can Change the LowerBoundDate for End Date in Code Behind when i Select the Start Date, without Submitting Whole Page?
Sample Codes: .aspx page
Sample Codes: .vb (DateChanged event for Start Date)
The End Date's LowerBoundDate isn't Change when i Select the Start Date.
Thanks,
SR
I am using EWorld DLL for Calender Control.
How i can Change the LowerBoundDate for End Date in Code Behind when i Select the Start Date, without Submitting Whole Page?
Sample Codes: .aspx page
Code:
<table>
<tr>
<td align="right">PO Start Date : </td>
<td align="left"><ew:calendarpopup id="cal_po_date" PopupLocation="Right" runat="server" Width="175" Nullable="true"
TextBoxLabelStyle-CssClass="textbox" ButtonStyle-Width="30" ButtonStyle-CssClass="DatePicImg01"
ButtonStyle-BorderStyle="None" ButtonStyle-Height="22" AutoPostBack="true"></ew:calendarpopup>
</td>
</tr>
<tr>
<td align="right">PO End Date : </td>
<td align="left"><ew:calendarpopup id="cal_po_end_date" PopupLocation="Right" runat="server" Width="175" Nullable="true"
TextBoxLabelStyle-CssClass="textbox" ButtonStyle-Width="30" ButtonStyle-CssClass="DatePicImg01"
ButtonStyle-BorderStyle="None" ButtonStyle-Height="22" AutoPostBack="true"></ew:calendarpopup>
</td>
</tr>
</table>
Code:
Protected Sub cal_po_date_DateChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cal_po_date.DateChanged Try cal_po_end_date.LowerBoundDate = DateAdd(DateInterval.Day, 1, cal_po_date.SelectedDate) Catch ex As Exception ShowAlert(ex.Message) End Try End Sub
Thanks,
SR