HyperLinkField Help

  • Thread starter Bruno Alexandre
  • Start date
B

Bruno Alexandre

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)
 
M

Michael Tkachev

Hi,


<asp:TemplateColumn>
<ItemTemplate>
<a href='<%# "vendas_detalhes.aspx?di=&df=&idC=" +
DataBinder.Eval(Container.DataItem, "idC") %>'>Text<a>
<ItemTemplate>
</asp:TemplateColumn>

Bye

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top