469,575 Members | 1,717 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

HyperLinkField Help

in the form I have:

<asp:TextBox ID="fAte" Runat="server" Width="80px">31-01-2004</asp:TextBox>

in the GridView I have:

<asp:HyperLinkField DataTextField="nC" HeaderText="nome Colab"

SortExpression="nC" DataNavigateUrlFields="idC"

DataNavigateUrlFormatString= "vendas_detalhes.aspx?di=&df=&idC={0}" />

How can I insert the fAte.Text FIELD to the HyperLinkField ?

I tried:

"vendas_detalhes.aspx?di=<%# fAte.Text %>&df=&idC={0}"

with no luck...

can anyone help me on this?

thank you

Bruno Alexandre

(Sintra, PORTUGAL)
Nov 18 '05 #1
1 1112
Hi,
<asp:TemplateColumn>
<ItemTemplate>
<a href='<%# "vendas_detalhes.aspx?di=&df=&idC=" +
DataBinder.Eval(Container.DataItem, "idC") %>'>Text<a>
<ItemTemplate>
</asp:TemplateColumn>

Bye

Mike

"Bruno Alexandre" <br*************@filtrarte.com> wrote in message
news:uR**************@tk2msftngp13.phx.gbl...
in the form I have:

<asp:TextBox ID="fAte" Runat="server" Width="80px">31-01-2004</asp:TextBox>
in the GridView I have:

<asp:HyperLinkField DataTextField="nC" HeaderText="nome Colab"

SortExpression="nC" DataNavigateUrlFields="idC"

DataNavigateUrlFormatString= "vendas_detalhes.aspx?di=&df=&idC={0}" />

How can I insert the fAte.Text FIELD to the HyperLinkField ?

I tried:

"vendas_detalhes.aspx?di=<%# fAte.Text %>&df=&idC={0}"

with no luck...

can anyone help me on this?

thank you

Bruno Alexandre

(Sintra, PORTUGAL)

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by John Smith | last post: by
1 post views Thread by pargat.singh | last post: by
8 posts views Thread by =?Utf-8?B?TWlrZSBSYW5k?= | last post: by
reply views Thread by =?Utf-8?B?RGFu?= | last post: by
4 posts views Thread by Jeff | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.