calendar with drop down list
-
Hi iam trying to implement a calendar control.i want to design like this. i have 3 drop down list(for day,month,year) at the top followed by a calendar control. and 3 link buttons(prev,today,next) at the bottom. if i select the particular day,month and year the calendar has to display accordingly,the same should happen with the link buttons also. can anyone tell me how to do this.iam not using any ajax controls.iam using asp .net calendar control. the code goes like this.... cal.aspx... <table id="table1" width="100%"> <tr></tr> <tr> <td align="center"> <asp:DropDownList ID="cboDay" runat="server" AutoPostBack="True"> <asp:ListItem Value="1"></asp:ListItem> <asp:ListItem Value="2"></asp:ListItem> <asp:ListItem Value="3"></asp:ListItem> <asp:ListItem Value="4"></asp:ListItem> <asp:ListItem Value="5"></asp:ListItem> <asp:ListItem Value="6"></asp:ListItem> <asp:ListItem Value="7"></asp:ListItem> <asp:ListItem Value="8"></asp:ListItem> <asp:ListItem Value="9"></asp:ListItem> <asp:ListItem Value="10"></asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="cboMonth" runat="server" AutoPostBack="True"> <asp:ListItem Value="January"></asp:ListItem> <asp:ListItem Value="Febraury"></asp:ListItem> <asp:ListItem Value="March"></asp:ListItem> <asp:ListItem Value="April"></asp:ListItem> <asp:ListItem Value="May"></asp:ListItem> <asp:ListItem Value="June"></asp:ListItem> <asp:ListItem Value="July"></asp:ListItem> <asp:ListItem Value="August"></asp:ListItem> <asp:ListItem Value="September"></asp:ListItem> <asp:ListItem Value="October"></asp:ListItem> <asp:ListItem Value="November"></asp:ListItem> <asp:ListItem Value="December"></asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="cboYear" runat="server" AutoPostBack="True"> <asp:ListItem Value="2000"></asp:ListItem> <asp:ListItem Value="2001"></asp:ListItem> <asp:ListItem Value="2002"></asp:ListItem> <asp:ListItem Value="2003"></asp:ListItem> <asp:ListItem Value="2004"></asp:ListItem> <asp:ListItem Value="2005"></asp:ListItem> <asp:ListItem Value
-
Hi iam trying to implement a calendar control.i want to design like this. i have 3 drop down list(for day,month,year) at the top followed by a calendar control. and 3 link buttons(prev,today,next) at the bottom. if i select the particular day,month and year the calendar has to display accordingly,the same should happen with the link buttons also. can anyone tell me how to do this.iam not using any ajax controls.iam using asp .net calendar control. the code goes like this.... cal.aspx... <table id="table1" width="100%"> <tr></tr> <tr> <td align="center"> <asp:DropDownList ID="cboDay" runat="server" AutoPostBack="True"> <asp:ListItem Value="1"></asp:ListItem> <asp:ListItem Value="2"></asp:ListItem> <asp:ListItem Value="3"></asp:ListItem> <asp:ListItem Value="4"></asp:ListItem> <asp:ListItem Value="5"></asp:ListItem> <asp:ListItem Value="6"></asp:ListItem> <asp:ListItem Value="7"></asp:ListItem> <asp:ListItem Value="8"></asp:ListItem> <asp:ListItem Value="9"></asp:ListItem> <asp:ListItem Value="10"></asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="cboMonth" runat="server" AutoPostBack="True"> <asp:ListItem Value="January"></asp:ListItem> <asp:ListItem Value="Febraury"></asp:ListItem> <asp:ListItem Value="March"></asp:ListItem> <asp:ListItem Value="April"></asp:ListItem> <asp:ListItem Value="May"></asp:ListItem> <asp:ListItem Value="June"></asp:ListItem> <asp:ListItem Value="July"></asp:ListItem> <asp:ListItem Value="August"></asp:ListItem> <asp:ListItem Value="September"></asp:ListItem> <asp:ListItem Value="October"></asp:ListItem> <asp:ListItem Value="November"></asp:ListItem> <asp:ListItem Value="December"></asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="cboYear" runat="server" AutoPostBack="True"> <asp:ListItem Value="2000"></asp:ListItem> <asp:ListItem Value="2001"></asp:ListItem> <asp:ListItem Value="2002"></asp:ListItem> <asp:ListItem Value="2003"></asp:ListItem> <asp:ListItem Value="2004"></asp:ListItem> <asp:ListItem Value="2005"></asp:ListItem> <asp:ListItem Value
If you're gong to do your own calendar with drop downs, why on earth do you also use a calendar control ?
Christian Graus Driven to the arms of OSX by Vista.