473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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 1176
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Smith | last post by:
I am trying to add a HyperLinkField to a datagrid programatically, but I keep running into the error: "CS1502: The best overloaded method match for...
1
by: pargat.singh | last post by:
I am using <asp:HyperLinkField in gridview as below which is working fine. <asp:HyperLinkField HeaderText="Process" Target="_blank" DataTextFormatString="Process me" DataTextField="doc_name" ...
2
by: SP | last post by:
Hi, I need a GridView that when I click on a row or on a HyperLinkField a javascript call raise . It is possible? The grid is in a window open from a parent window. Onclick in a row selected,...
8
by: =?Utf-8?B?TWlrZSBSYW5k?= | last post by:
I am trying to get a list of files from a specified directory using the System.IO namespace classes, and then use that list as the datasource for a GridView. I have been able to do this...
8
by: Jeff | last post by:
ASP.NET 2.0 I'm wondering how to set the color of a visited HyperLinkField (the link text) in a GridView?? Here is the markup of the HyperLinkField I have problems with: <asp:HyperLinkField...
0
by: bodamithun | last post by:
Hi all, For some weird reason my hyperlinkfield does not work. <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" > ...
1
by: boevermann | last post by:
I prototyped an html table that has a hyperlink that pops a window showing a map of the entry from the that table. The link looks like this: <a href="authenticate.asp"...
0
by: =?Utf-8?B?RGFu?= | last post by:
I am creating the content for my Gridview through code. My last column is a hyperlinkfield. Everything is working fine except for applying my CssClass to the HyperLinkField. I have tried the...
4
by: Jeff | last post by:
Hi asp.net 2.0 I'm trying to implement a HyperLinkField into my GridView.. The SqlDataSource returns a field which is paths to files (each row in the GridView should have link to a file). ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.