Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to enter the date in a text box and display the record of the entered date in the grid.
Posted
Updated 19-Apr-14 22:28pm
v3
Comments
syed shanu 16-Apr-14 3:45am    
So what is your problem .insted of entering date in textbox try to use date control in asp.net.
Member 10694442 16-Apr-14 3:55am    
i will use date control but first i want to check using this. but in this i cant get perticular date's record it display all records
ravikhoda 16-Apr-14 7:34am    
check your select statement if that is not filtering data for proper date.

I guess you need following search terms of Google[^].

Quote:
filter datagrid based on textbox
 
Share this answer
 
  • Use a DatePicker for the TextBox.
  • While binding the GridView, get the value of TextBox.
  • In you Select query for GridView use that date as a constraint or condition.
 
Share this answer
 
v2

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