MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load ' If Not IsPostBack Then Dim cmd As New SqlCommand("SELECT Description, Code FROM NAICS WHERE Description LIKE '% + @SearchNAIC + %' ORDER BY Description ASC", New SqlConnection(ConfigurationManager.ConnectionStrings("OJTConnectionString").ConnectionString)) cmd.Parameters.Add("@SearchNAIC", SqlDbType.VarChar).Value = txtSearch.Text cmd.Connection.Open() Dim drNAIC As SqlDataReader drNAIC = cmd.ExecuteReader() ddlNAICS.DataSource = drNAIC ddlNAICS.DataTextField = "Description" ddlNAICS.DataValueField = "Code" ddlNAICS.DataBind() cmd.Connection.Close() cmd.Connection.Dispose() End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|SQL works but want to get the XML node data separately||11||54|
|YouTube API get the Video Tags - vb.net||7||51|
|Background worker passing messagebox yes no||13||25|
|EMAIL RANGES BASED ON CURRENT TIME||12||38|
Join the community of 500,000 technology professionals and ask your questions.