Friday, April 15, 2011

Adding string to bound field

trying to add a prefix before bound field

<label><input type="radio" name="rbGroup" value='r<%#((Type)Container.DataItem).ID %>'/><%# ((Type)Container.DataItem).Action %></label>

but it's putting r next to the button. I want rID

From stackoverflow
  • value='<%#"r"+((Type)Container.DataItem).ID %>'

    CoffeeAddict : I know I tried this but I'll try again...weird.

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.