472,372 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,372 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 1148
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). ...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

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.