[英]Message Popup with <a href>
I am trying to create a pop up when the application throws an exception.当应用程序抛出异常时,我试图创建一个弹出窗口。 The error is generated from backend webservice
错误是从后端网络服务生成的
string urlNew = HttpUtility.UrlEncode("https://community.atlassian.com/t5/Jira-questions/Unable-to-log-into-Jira-Software-system-dashboard-v7-12-3/qaq-p/920444");
StringBuilder sb = new StringBuilder();
string itSupprt = "IT Support request";
sb.Append("Error: Id is already in use.").AppendLine();
sb.Append("If assistance is required, please use ");
sb.AppendFormat(@"<a href = '{0} {1}' </a>", urlNew, itSupprt);
throw new FaultException<ErrorMessage>(errorMessage, sb.ToString());
My expectation was to show the pop up with a url, that can be clicked.我的期望是显示带有 url 的弹出窗口,可以单击它。 But i got following as popup.
但是我作为弹出窗口得到了关注。 The URl is not proper.
URl 不正确。
Any pointer whether it is achievable to have popup message with clickable url任何指针是否可以实现具有可点击的弹出消息 url
No, It is not possible using the default dialogue/alert box.不,使用默认对话框/警告框是不可能的。 If you want to put a URL, you can do it by using jquery's dialogue function. Here are some code examples: http://jqueryui.com/dialog/#default
如果你想放一个URL,你可以使用jquery的对话框function来完成。这里有一些代码示例: http://jqueryui.com/dialog/#default
For that, you have to include Jquery-UI on your page.为此,您必须在页面上包含 Jquery-UI。
Furthermore, you can also use a bootstrap dialogue box.此外,您还可以使用引导程序对话框。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.