Click here to Skip to main content
12,819,913 members (31,979 online)
Click here to Skip to main content

Stats

0 views
Posted 29 Jan 2013

Trying to use drop down list as filter

, 29 Jan 2013 CPOL
You have not added the connection property. Add this to your code:Dim command As New SqlCommand("select * from grades where test = '" + Convert.ToString(Me.DropDownList2.SelectedValue) + "'", con)

Revisions


  

Compare Revision Minor Date Status Editor
6 - publicly available No 29-Jan-13 11:55 Available Richard C Bishop
Updates in content. 6 changes had been made.
5 No 29-Jan-13 11:32 Available Richard C Bishop
Updates in content. 134 changes had been made.
4 No 29-Jan-13 11:14 Available Richard C Bishop
Updates in content. 28 changes had been made.
3 No 29-Jan-13 11:06 Available Richard C Bishop
Updates in content. 61 changes had been made.
2 No 29-Jan-13 11:05 Available Richard C Bishop
Updates in content.
1 No 29-Jan-13 11:04 Available Richard C Bishop

License

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

Share

About the Author

Richard C Bishop
Software Developer
United States United States
I have been on my software developing journey since May 2011. I was dumbfounded at the shear amount of information involved when first starting out but have become comfortably numb to it.

My base knowledge is in ASP.Net and C#, but I am continuously expanding upon that.

I am now a SharePoint Engineer and have been working with AngularJS, REST api, and the new app model for SharePoint, both provider hosted and SharePoint hosted.

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 29 Jan 2013
Article Copyright 2013 by Richard C Bishop
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid