Saturday, March 24, 2012

Simple Databind

Hey Everyone,

This may be a simple question, but what syntax would I use to databind a label text value to a 'a href' value?

I've tried using <a href='<%# label2.text %>' target="_blank"> and other variations, but for the life of me I cannot get it to work - the link keeps linking back to the root URL of the page I'm working on.

Any ideas would be greatly appreciated.

Thanks,
Scott

Try <%= label2.Text %> instead.

Brilliant!

I new it would be something simple! I have been pulling out hair for the past hour and a half and that worked like a charm.

Jcasp, your help is very much appreciated!

Scott

0 comments:

Post a Comment