I didnt understand.
This is the code that fills that datagrid
Public Sub pasar(ByVal sender As System.Object, ByVal e As
System.Web.UI.W ebControls.Data GridCommandEven tArgs)
If IsPostBack Then
Dim iddireccion As Int16 = dgdir.DataKeys( e.Item.ItemInde x)
'lblmetas.Text = "Indicadore s para la direccion seleccionada"
Dim selectCMD2 As SqlCommand = New SqlCommand("sel ect * from tblrelinddir,
tblheaderindica dor where
tblheaderindica dor.idindicador =tblrelinddir.i dindicador and
tblrelinddir.id direccion=" & iddireccion & "", SqlConnection1)
selectCMD2.Comm andTimeout = 30
Dim custDA2 As SqlDataAdapter = New SqlDataAdapter
custDA2.SelectC ommand = selectCMD2
Dim custDS2 As DataSet = New DataSet
custDA2.Fill(cu stDS2, "tblindicadorme ta")
dgmetas.DataSou rce = custDS2.Tables( "tblindicadorme ta").DefaultVie w
If custDS2.Tables( "tblindicadorme ta").Rows.Cou nt = 0 Then
' lblmetas.Text = "NO hay indicadores en esta direccion"
dgmetas.Visible = False
' panelmeta.Visib le = False
Else
dgmetas.DataBin d()
dgmetas.Visible = True
'panelmeta.Visi ble = False
End If
End If
End Sub
and I need two fields on the link that are on the table called RELINDDIR a
fiels is called idireccion and the other is idindicador
and I want the link to show acciones.aspx?i dindicador=2&id direccion=4
can u help me a little more?
"Gabriël" <sp**@adiso.n l> escribió en el mensaje
news:10******** *****@corp.supe rnews.com...
Hello,
I use:
<asp:HyperLinkC olumn Text="delete"
DataNavigateUrl Field="Hardware AssetCFId"
DataNavigateUrl FormatString="S tandardFields.a spx?delete={0}" >
<HeaderStyle HorizontalAlign ="Left"
CssClass="gridH eader"></HeaderStyle>
<ItemStyle CssClass="gridF irstItem"></ItemStyle>
</asp:HyperLinkCo lumn>
The property Text will be displayed for every row, and the
DataNavigateUrl Field, DataNavigateUrl FormatString together let you create
the link,
Greets,
Gab
"Luis E Valencia" <lu*******@hace b.com> schreef in bericht
news:eD******** ******@TK2MSFTN GP12.phx.gbl... I want a row of the datagrid with a personalized link. The fields of
the link are on the select related to the datagrid
the link would be accoiones.aspx? iddireccion=2&i dindicador=5
I tried this but doesnt work
<ItemTemplate >
<asp:HyperLin k runat="server" id="Hyperlink2 "
NavigateUrl='ac ciones.aspx?idd ireccion='<%#
DataBinder.Eval (Container,"Dat aItem.iddirecci on"%>'&idindica dor='<%#
DataBinder.Eval (Container,"Dat aItem.idindicad or"%>'>link</asp:HyperLink>
</ItemTemplate>