In my previous project, I had to display e-mail addresses for each row in the GridView as a hyperlink to enable users to click on the link which will take them to compose e-mail in OutLook. I was taken aback to see that after the page was rendered, the link didn’t show but the e-mail address was shown as a static text. Bummer!!! I did some research on why ASP.NET 2.0 was behaving like that and found out that the src/href elements were disabled because the data might be malicious. But after few hours of trying, I found a workaround: Instead of using Hyperlink field, we can use a BoundField and set the DataFormatString property.
<a href=mailto:{0}>{0}</a> and this works perfectly. Here {0} is your datafield column from your datasource which has the e-mail address.