Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am using asp.net4.0, I used noscript tag in asp.net.

Ex:
XML
<noscript>
<meta http-equiv="Refresh" content ="0;URL=<%# ResolveUrl("~/noscript.aspx") %>"/>
</noscript>




It will throw error :Element noscript cannot nested in html.

How can i sole this.
Posted

Change # to =. like this
C#
<%= ResolveUrl("~/noscript.aspx") %>"
 
Share this answer
 
Comments
24983 26-Feb-13 4:56am    
My cursor in in noscript tag. it shows: Validation(xhtml1.0 Traditional):Element noscript cannot nested with in head or html. Please give me idea.
please Use below script :

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900