ThatRickGuy
Programmer
Hey Guys,
I have a data repeater, I am trying to put a user control into that repeater. The problem I am running into is trying to uses quotes (") in the server tag, for example:
Fails with "the server tag is invalid". I tried a variety of single quote ('), quote("), escaped quote ("", \") and the only thing that I found to work was converting the string into a concatination of chr commands:
That works, but it's so kludgie.... there must be a better way. Any ideas?
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
I believe in killer coding ninja monkeys.![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)
I have a data repeater, I am trying to put a user control into that repeater. The problem I am running into is trying to uses quotes (") in the server tag, for example:
Code:
<uc1:wucSlide ID="WucSlide2" runat="server" IndexPos="<%#DataBinder.Eval(Container.DataItem, [b]"IndexPos"[/b]) %>" Title="Test"/>
Fails with "the server tag is invalid". I tried a variety of single quote ('), quote("), escaped quote ("", \") and the only thing that I found to work was converting the string into a concatination of chr commands:
Code:
<uc1:wucSlide ID="WucSlide2" runat="server" IndexPos="<%#DataBinder.Eval(Container.DataItem, [b]chr(73) & chr(110) & chr(100) & chr(101) & chr(120) & chr(112) & chr(111) & chr(115)[/b]) %>" Title="Test"/>
That works, but it's so kludgie.... there must be a better way. Any ideas?
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)
![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)