473,406 Members | 2,954 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,406 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 5602
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: 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
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
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.