473,811 Members | 2,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:HyperLinkF ield DataTextField=" nC" HeaderText="nom e Colab"

SortExpression= "nC" DataNavigateUrl Fields="idC"

DataNavigateUrl FormatString= "vendas_detalhe s.aspx?di=&df=& idC={0}" />

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

I tried:

"vendas_detalhe s.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 1193
Hi,
<asp:TemplateCo lumn>
<ItemTemplate >
<a href='<%# "vendas_detalhe s.aspx?di=&df=& idC=" +
DataBinder.Eval (Container.Data Item, "idC") %>'>Text<a>
<ItemTemplate >
</asp:TemplateCol umn>

Bye

Mike

"Bruno Alexandre" <br************ *@filtrarte.com > wrote in message
news:uR******** ******@tk2msftn gp13.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:HyperLinkF ield DataTextField=" nC" HeaderText="nom e Colab"

SortExpression= "nC" DataNavigateUrl Fields="idC"

DataNavigateUrl FormatString= "vendas_detalhe s.aspx?di=&df=& idC={0}" />

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

I tried:

"vendas_detalhe s.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
1128
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 'System.Web.UI.WebControls.DataGridColumnCollection.Add(System.Web.UI.WebControls.DataGridColumn)' has some invalid arguments" Here is my code HyperLinkField column = new HyperLinkField();
1
4070
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" DataNavigateUrlFields="doc_name" DataNavigateUrlFormatString ="~/aaaa.aspx?path={0}" /> Currently it is displaying "Process Me" for all row and opening new window.But i have some records which are already processed and for
2
17444
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, a field in a opener is fill with the data of the row selected. Thanks
8
9664
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 successfully. The problem is when I try to hook up a HyperLinkField it's not working. Basically, what I want to end up with is to have the file name listed in the column and have the link point to the full file path, for each file in the list. I've been...
8
11259
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 HeaderText="Subject" Text="Subject" DataTextField="Subject" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="~/Templates/View.aspx?id={0}" HeaderStyle-CssClass="columnStyle" ItemStyle-CssClass="columnStyle" />
0
1275
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" > <Columns> <asp:HyperLinkField DataTextField="batchid" DataNavigateUrlFields="batchid" DataNavigateUrlFormatString="ViewUserAccount.aspx?id={0}"/>
1
11458
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" onClick="window.open('authenticate.asp? code=COUNTRYSIDEESTATES','gismap','toolbar=no,menubar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,height=600,width=800');return false">Map</a> Now that the department has settled on the...
0
1833
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 following: hyperlinkfield.ControlStyle.CssClass = "MyClass" However, this generates no html output to the page and the style is not applied. If I set the code using the ItemStyle instead of controlStyle, it gets applied to the <tdtag. I need...
4
2431
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). I've specified DataTextFields and DataNavigationUrlFields with the column name which holds the path to the document. But the GridView doesn't create a
0
9605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10403
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4341
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.