Author: mathews7 | Posted on: 7/10/2009 3:56:02 AM | Views : 313

i dunno how to pass the label text of datalist  to bind function in the pageindexchanging of grid view ..plz suggest.....?Protected Sub pageindexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Dim grid As GridView = DirectCast(sender, GridView) grid.PageIndex = e.NewPageIndex Dim sdf As String = ??'how can i pass the label of text property of Datalist which has this gridview.in order to bind for the next page...?? BindGrid(grid, name) End Sub Private Sub BindGrid(ByVal GridView As GridView, ByVal name As String) Dim con As SqlConnection con = New SqlConnection(ConfigurationSettings.AppSettings("cons")) Dim Sql1 As String = "select * from tbl1 where name ='"& name &"' Dim da As New SqlDataAdapter(Sql1, con) Dim ds As New DataSet() da.Fill(ds) GridView.Data ...

Go to the complete details ...