473,387 Members | 1,799 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,387 software developers and data experts.

set value for DataNavigateUrlFormatString dynamically

TJS
how can I dynamically set the value of DataNavigateUrlFormatString in a
hyperlink column
I have the value to use, I need the correct syntax .

"<%= %>" isn't working

<asp:HyperLinkColumn
Text="View"
DataNavigateUrlField="field1"
DataNavigateUrlFormatString="<%= dynamic value goes in here %>" />
Nov 18 '05 #1
2 5600
TJS wrote:
how can I dynamically set the value of DataNavigateUrlFormatString in a
hyperlink column
I have the value to use, I need the correct syntax .

"<%= %>" isn't working

<asp:HyperLinkColumn
Text="View"
DataNavigateUrlField="field1"
DataNavigateUrlFormatString="<%= dynamic value goes in here %>" />


Use:

DavaNavigateUrlFormatString='<%# ... %>'

There are some good FAQs you might want to check out on HyperLinkColumns
under the Hyperlinks section at: http://datawebcontrols.com/faqs/

Happy programming!

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
Nov 18 '05 #2
TJS
That only seems to work for a container field
I need something like this:

<asp:HyperLinkColumn
Text="View"
DataNavigateUrlField="field1"
DataNavigateUrlFormatString="<%=
ConfigurationSettings.AppSettings("myvalue") %>"
/>

"Scott Mitchell [MVP]" <mi******@4guysfromrolla.com> wrote in message
news:8%*****************@newssvr27.news.prodigy.co m...
TJS wrote:
how can I dynamically set the value of DataNavigateUrlFormatString in a
hyperlink column
I have the value to use, I need the correct syntax .

"<%= %>" isn't working

<asp:HyperLinkColumn
Text="View"
DataNavigateUrlField="field1"
DataNavigateUrlFormatString="<%= dynamic value goes in here %>" />


Use:

DavaNavigateUrlFormatString='<%# ... %>'

There are some good FAQs you might want to check out on HyperLinkColumns
under the Hyperlinks section at: http://datawebcontrols.com/faqs/

Happy programming!

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mike P | last post by:
Does anyone know if you can pass multiple column parameters in the DataNavigateUrlFormatString for grids? My current code is like this and works for a single parameter: <asp:HyperLinkColumn...
5
by: DC Gringo | last post by:
I've got a command button to submit a value from a dropdown list that should then filter a SELECT query. I'm simply appending a WHERE colx = <variableSelectedFromDropdownList>. How do I pass this...
0
by: RobT | last post by:
Hi, I've been using the DataGrid control in my ASP.NET web page. The page is used to search for records in the database. The control is bound to a DataSource and gets populated ok. I am also...
1
by: Fredrik Rodin | last post by:
Hi! I'm about to create a datagrid and columns at runtime. The problem I have is to add additional arguments to the querystring. The code: Dim hc1 As New HyperLinkColumn hc1.DataTextField...
2
by: Donkey | last post by:
Hi, Despite the many examples i can't find the right way to pass a value of a datagrid to another form. So could someone please explain me what i am doing wrong. so i have a datagrid with an...
0
by: josepm | last post by:
Hello. I am programming a bounded DataGrid in C# (VS 2003) for ASP.Net 1.1 environment. My trouble is an HyperLinkColumn inside this DataGrid becaus I do not know how to change the...
7
by: genc_ymeri | last post by:
Hi, I would like to bind the hyperlink column but I don't see how to. I tried somethink like this but instead of showing ID nummbers it shows "ID=ID" Any tip is very much appreciated. Genc
3
by: amjad | last post by:
Hi i have a webpage which has datagrid with one column called customer ID.. that customer ID is hyperlink mean i a click that customer ID it open a web page and display that customer ID on that...
3
by: msuk | last post by:
All, I am using a datagrid on a 1.1 .aspx page that has a hyperlink column. I am using 'DataNavigateUrlFormatString' to set the URL to browse to once the user clicks on the link i.e. ...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...

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.