Sub ddlID_SelectedIndexChanged(sender As Object, e As EventArgs) Dim strConnection As String = "Data Source=RS-RAJSEKHAR\MSSQLSERVER12;Initial Catalog=Test;Integrated Security=true" Dim cmdText As String = "SELECT [id], [name], [address],[email] FROM [tbl_StudentRecord] where id=@id" Dim data As New DataTable() Dim adapter As New SqlDataAdapter(cmdText, strConnection) adapter.SelectCommand.Parameters.AddWithValue("@id", ddlID.SelectedValue) adapter.Fill(data) rptbind.DataSource = data rptbind.DataBind() End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)