T
Tim Mulholland
I have an issue i can work around, but i'm trying to figure out what i'm
"supposed" to do.
i have a line of HTML/ASP.NET code inside a repeater that is something like
this
<a href="page.aspx?s=<%# DataBinder.Eval(Container, "DataItem.TheData")
%>">Text</a>
This code executes perfectly, and does exactly what i want. When i try to
switch from HTML view to Design view, VS.NET2003 yells at me saying i need
to quote something differently. So, i figured i'd change the quotes...
well.. i can't change the "DataItem.TheData" to 'DataItem.TheData' because
thats a C# character literal, but with too many characters, and it doesn't
like that. I can change the "page.aspx?s= ... "> to be 'page.aspx?s=...'>
but that breaks some of my links that actually have the ' character in their
address.
So what do i do?
Whats the "proper" way to do this so i can actually switch back and forth
between HTML view and Design view without any hassle?
Thanks in advance!
Tim
"supposed" to do.
i have a line of HTML/ASP.NET code inside a repeater that is something like
this
<a href="page.aspx?s=<%# DataBinder.Eval(Container, "DataItem.TheData")
%>">Text</a>
This code executes perfectly, and does exactly what i want. When i try to
switch from HTML view to Design view, VS.NET2003 yells at me saying i need
to quote something differently. So, i figured i'd change the quotes...
well.. i can't change the "DataItem.TheData" to 'DataItem.TheData' because
thats a C# character literal, but with too many characters, and it doesn't
like that. I can change the "page.aspx?s= ... "> to be 'page.aspx?s=...'>
but that breaks some of my links that actually have the ' character in their
address.
So what do i do?
Whats the "proper" way to do this so i can actually switch back and forth
between HTML view and Design view without any hassle?
Thanks in advance!
Tim