display in the listbox
-
Hello can you please help me.After the user selected the project from dropdownlist,I want the name of all the members working under that project to be displayed in the listbox.Please help me with the code for that. oga m
-
Hello can you please help me.After the user selected the project from dropdownlist,I want the name of all the members working under that project to be displayed in the listbox.Please help me with the code for that. oga m
Private Sub dropdownlist1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dropdownlist1.SelectedIndexChanged dst = New DataSet sqldad = New SqlDataAdapter("SELECT employee from tablename where projectname=val(dropdownlist1.selecteditem.value)", sqlconn) sqldad.Fill(dst) dst.Tables(0).TableName = "tblMainGRD" If dst.Tables("tblMainGRD").Rows.Count > 0 Then Me.btnSubmitStock.Visible = True listbox1.DataSource = dst listbox1.DataBind() Else Me.btnSubmitStock.Visible = False listbox1.DataSource = Nothing listbox1.DataBind() End If sqldad.Dispose() dst.Dispose() End Sub:)
Magesh
-
Hello can you please help me.After the user selected the project from dropdownlist,I want the name of all the members working under that project to be displayed in the listbox.Please help me with the code for that. oga m
Under SlectedIndexChanged event of dropdownlist write the code. Based on the selected value of the dropdownlist, fetch the name of all the members from database and then bind the datalist with the data retrieved.