问题
I have a HyperLink set up to use mailto, but it would seem that it's calling inside the root folder. ~/Admin/mailto:email@stackoverflow.com
<asp:HyperLink runat="server" NavigateUrl='<%#Eval("Email", "mailto:{0}")%>'
Text='<%#Eval("Email")%>' ID="emailLink" />
Any ideas why this might be happening?
回答1:
Try to
<asp:HyperLink NavigateUrl='<%#Bind("Email", "mailto:{0}") %>' Text='<%#Bind("Email") %>' runat="server" ID="emailLink"></asp:HyperLink>
Good luck!
来源:https://stackoverflow.com/questions/11895667/asp-net-mailto-misfunction