If I understand correctly you want a jQuery example without a postback.
Populate the select.
public partial class FiscalYear : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
PopulateFiscalYears();
}
private void PopulateFiscalYears()
{
int FiscalYear = DateTime.Now.Month < 4 ? DateTime.Now.Year : DateTime.Now.Year + 1;
FiscalYears.Items.Add(new ListItem ("--Select--", ""));
for (int i = 0; i < 3; i++)
{
FiscalYears.Items.Add(new ListItem
(
"Apr-" + (FiscalYear - i - 1).ToString() + " TO Mar-" + (FiscalYear-i).ToString(),
"01-Apr-" + (FiscalYear -i - 1).ToString() + ",31-Mar-" + (FiscalYear - i).ToString()
));
}
}
}
JQuery to populate two textboxes when the select changes.
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div>
<asp:DropDownList ID="FiscalYears" runat="server"></asp:DropDownList>
</div>
<div>
<asp:TextBox ID="FromDate" runat="server"></asp:TextBox>
<asp:TextBox ID="ToDate" runat="server"></asp:TextBox>
</div>
<script>
$('#<%=FiscalYears.ClientID%>').change(function () {
//console.log($(this).val().split(","));
var dates = $(this).val().split(",");
$('#<%=FromDate.ClientID%>').val(dates[0]);
$('#<%=ToDate.ClientID%>').val(dates[1]);
});
</script>
</asp:Content>
Perhaps in future post you can you at least try to write the code?