Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic SQL statement in webform with datagrid
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Titre:
Dynamic SQL statement in webform with datagrid
Divers
Thread ID:
00671307
Message ID:
00671307
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform