Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Getting the selected index value in Navigateurl property

Last post 05-08-2008 7:08 AM by Shiji krishnan. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-08-2008 7:08 AM

    Getting the selected index value in Navigateurl property

    Hi

     I have set the hyperlinkcolumn for the value retrieved from datatable  using the following code......

    but i need to get the value for usercode using selectedrow property..means i will get the value for usercode only after clicking the hyperlink.........but in the row databound it is not possible to get the selected row value.....pls help me to solve this issue 

    Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound

    Dim myctrl = e.Row.FindControl("Transaction Count")

    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 =
    "iscNScanUserDetail.aspx?usercode=" + uc + "&trxndt=" + trxndt + "&trtype=" + trtype + "&amc=" + amc

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

    End If

    Next

    End Sub

    • Post Points: 5
Page 1 of 1 (1 items)