[Visual Studio 2003] - Designer Changing Server-Side Code

M

Mythran

I have the following client-side tag with server-side code:

<link rel="icon"
type="<%=ConfigurationSettings.AppSettings("FavIconType")%>"
href="<%=ResolveUrl(String.Empty &
ConfigurationSettings.AppSettings("FavIconUrl"))%>"
When I switch to the design view, and modify anything on the screen (such as
add a space at the end of the document, the above is changed to:

<link rel="icon"
type="<%=ConfigurationSettings.AppSettings("FavIconType")%>"
href="<%=ResolveUrl(String.Empty &amp;
ConfigurationSettings.AppSettings("FavIconUrl"))%>"

Notice the "&amp;" in the href tag. This is bad...anyone know of a way to
prevent this from happening? I have a fix for the example above, but would
like to know why this occurs...

FIX:
<link rel="icon"
type="<%=ConfigurationSettings.AppSettings("FavIconType")%>"
href="<%=ResolveUrl(String.Empty +
ConfigurationSettings.AppSettings("FavIconUrl"))%>"
Thank you,
Mythran
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top