ASP.NET mailto: misfunction

試著忘記壹切 提交于 2019-12-25 05:22:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!