Passing Querystring with more than one parameters using GridView

asp.net Brazil
  • 12 years ago

    Grid DataBind

    For i = 0 To UBound(ls_amcarray)dtcol = New DataColumn("Transaction Count" & ls_amcarray(i))

    dt1.Columns.Add(dtcol)

    dtcol =
    New DataColumn("Auth Count" & ls_amcarray(i))

    dt1.Columns.Add(dtcol)

    Next

    ct = dt1.Columns.Count

    For i = 0 To UBound(arrloc)

    dtrow = dt1.NewRow

    dtrow(
    "UserCode") = arrloc(i)

    For k = 0 To UBound(ls_amcarray)

    pv.Flag = "SCANCAPTUREDCOUNT"

    pv.TransationType = ""

    pv.TradeDate = dateval

    pv.UserCode = arrloc(i)

    pv.Amount = 0

    dt = bc.GenerateXMLData(pv, ls_amcarray(k),
    "EISCTEST", "TEST PAGE", func_owner(ls_amcarray(k)), 0)

    If dt.Rows.Count > 0 Then

    For j = 0 To dt.Rows.Count - 1

    dtrow("Transaction Count" & ls_amcarray(k)) = Convert.ToString(dt.Rows(j).Item(1))

    dtrow("Auth Count" & ls_amcarray(k)) = Convert.ToString(dt.Rows(j).Item(2))

    Next

    Else

    dtrow("Transaction Count" & ls_amcarray(k)) = 0

    dtrow("Auth Count" & ls_amcarray(k)) = 0

    End If

    Next

    dt1.Rows.Add(dtrow)

    Next

    GridView1.DataSource = dt1

    =======================

    Grid view1_rowdatabound event : -

    For i = 1 To ct - 1 Step 2

    If e.Row.Cells(i).Text <> "0" Then

    Dim hlControl As New HyperLink()

    hlControl.Text = e.Row.Cells(i).Text

    hlControl.NavigateUrl = "iscNScanSummary.aspx?="

    e.Row.Cells(i).Controls.Add(hlControl)

    End If

    Next

     i need to pass more than one parameter using gridview where we bind the grid using data table. Could any body help me how to fetch the data from the grid view and pass it to the query string parameters.  

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are 10 types of people in the world, those who can read binary, and those who can't.”