Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic SQL statement in webform with datagrid
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Web forms
Title:
Dynamic SQL statement in webform with datagrid
Miscellaneous
Thread ID:
00671307
Message ID:
00671307
Views:
50
I have a webform running that has a calendar control and a datagrid. I used the data toolbox to drop an oledbDataAdapter on the form (because the book told me too). I then used the Data menu option to generate a dataset (ScheduledCases1), which I built the basic sql query (SQL 2000 for the database). I have the code all working with the data grid getting populated. But I now I need to make a dynamic where clause based on the date they pick in the calendar. So I have to public variables (cStartDate and cEndDate) that stores the date when they click on the calendar. But I don't know how create the dynamic portion of the query. Once I created the dataset with the generate dataset option, is that locked now?

Thanks for any help.

Kirk

I'm using vb.net
Next
Reply
Map
View

Click here to load this message in the networking platform