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!