Curtis360it
IS-IT--Management
Basically, when someone clickes on a row in my Gridview, I would like to take a value from the Gridview and use it in a SPROC. That part works great, but I can't get my Datalist to populate correctly. I either get StackOverflowExceptions or nothing at all.
Can someone explain how I might go about doing what I am trying to accomplish?
EXAMPLE:
If IsPostBack Then
Dim value As String
Dim SqlDataSource As SqlDataSource
SqlDataSource = Me.Get_All_Details
value = Me.GridView1.SelectedRow.Cells(1).Text
SqlDataSource.ConnectionString = ConfigurationManager.ConnectionStrings("ESPConnectionString1").ToString
SqlDataSource.SelectCommandType = SqlDataSourceCommandType.StoredProcedure
SqlDataSource.SelectCommand = "TenantDetailedInfo"
SqlDataSource.SelectParameters.Add("ID", value)
Me.DataList1.DataBind()
End If
Can someone explain how I might go about doing what I am trying to accomplish?
EXAMPLE:
If IsPostBack Then
Dim value As String
Dim SqlDataSource As SqlDataSource
SqlDataSource = Me.Get_All_Details
value = Me.GridView1.SelectedRow.Cells(1).Text
SqlDataSource.ConnectionString = ConfigurationManager.ConnectionStrings("ESPConnectionString1").ToString
SqlDataSource.SelectCommandType = SqlDataSourceCommandType.StoredProcedure
SqlDataSource.SelectCommand = "TenantDetailedInfo"
SqlDataSource.SelectParameters.Add("ID", value)
Me.DataList1.DataBind()
End If