Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Passing Querystring with more than one parameters using GridView

Last post 05-07-2008 10:35 AM by umaa_u. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-07-2008 10:35 AM

    • umaa_u
    • Not Ranked
    • Joined on 05-07-2008
    • India
    • New Member
    • Points 5

    Passing Querystring with more than one parameters using GridView

    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 Points: 5
Page 1 of 1 (1 items)