I'm having a weird problem where mailto: links added to the body of ASP.NET pages using master pages and the asp:menu control don't work in IE8 (at least, maybe other versions). Steps to reproduce:
- Create new project in VS2010 (ASP.NET Web Application).
- Add this control to bottom of Default.aspx (I'm using VB. I'm not sure if I'd have the same results with a C# project): HyperLink
- Hit F5 (needs to open in IE).
When I click on the mailto: link the following occurs.
- A second tab opens in IE.
- A blank email message opens in Outlook 2010 (this is good).
- Second tab closes in IE. (I believe this is normal.)
- The original page in IE now says "Internet Explorer cannot display the webpage" and the url in the browser's address bar is the email address from the hyperlink control.
The weird thing is that if I delete the control from the master page and try again, everything works.
I get the same results if I change the hyperlink control to regular HTML. HyperLink
I have searched everywhere for this and can't find anything. I'm sure that means I'm doing something wrong, but I can't figure this one out.
Thanks.