Xpode.com        Click here to Print this article.

W3.org html validation for Hyperlink - character "&" is the first character of a delimiter but occurred as data in Hyperlink control of asp.net when text includes & or &

When I was validating this page to w3.org the i was receiving error character "&" is the first character of a delimiter but occurred as data. It was not validation this control and showing a message for change it to & but it was already written in html. To validate this, write text containing & sign on page load.

My code was:



When I was validating this page to w3.org the i was receiving error character "&" is the first character of a delimiter but occurred as data

Solution for Hyperlink validation is.... Write the text on page load

hlnkVision.Text = "Vision & Mission";


http://
http://

Contributed by:
Rohit kakria
I am software developer

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=321

Click here to go on website