Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two calendars in my application and want to extract data from database of a particular time period. I mean to say I want to display data in gridview from 01/01/2013 to 01/02/2013. please suggest me with full coding in C#. Thanks....
Posted

1 solution

please suggest me with full coding in C#.
Sorry, it does not work like this.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.



For your question, following will help:
1. Your query should have WHERE clause for date like,
C#
SELECT * FROM MyTable WHERE dateColumn BETWEEN @startDate AND @endDate

2. Study about ADO.NET: MSDN: ADO.NET[^]
 
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