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 &
ConfigurationSettings.AppSettings("FavIconUrl"))%>"
Notice the "&" 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
<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 &
ConfigurationSettings.AppSettings("FavIconUrl"))%>"
Notice the "&" 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