Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
VB
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



Here I am getting All the information "datatable data"..But i am unable to bind the data to REpeater....
Posted
Updated 22-Jan-15 22:39pm
v4
Comments
Tejas Vaishnav 23-Jan-15 6:27am    
what error you are facing.. can you please give more details
Arkadeep De 23-Jan-15 7:00am    
share the error...

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900