Click here to Skip to main content
16,022,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im searching an answer but I dont know what is the right term to call to this scenario...

I want to add 2 dropdownlist(START date and END date(I want to use calendar to pick date but i dont know how)

and I have a gridview containing dates of order and i want to select date from it and show the data in the date the i pick from 2 dropdownlist(start date and end date)

Thank you in advance for those concern :)
Posted

In your given scenario, I would have used this approach:

I would use a textbox and a dropdown
TextBox1= date

Just change from type="text" to type="date" of your textbox.

C#
<asp:TextBox ID="TextBox1" runat="server" type="date"></asp:TextBox>


Perhaps when it comes to selecting from gridview I would suggest using SELECT statements then assign it to the textbox
 
Share this answer
 
v3
Why those drop-down controls if you can use something line DateTimePicker? Something like this one: DateTimePicker Web Control[^].

See also my past answer: TextBox allow only (HH:mm tt) format using asp.net[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900