SPGridView 字段 - javascript:window.open 问题

发布于 2025-01-05 12:03:18 字数 102 浏览 3 评论 0原文

我有一个问题,在 SPGridView 中,如果我添加超链接字段或任何内容,则 javascript:window.open 似乎不起作用。它不显示为超链接。

有什么建议吗?

I have an issue where in the SPGridView if I add a hyperlink field or anything, it seems like the javascript:window.open does not work. It does not show as a hyperlink.

Any advice?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空‖城人不在 2025-01-12 12:03:18

我自己能够解决这个问题:

        BoundField colCaseTitle = new BoundField();
        colCaseTitle.ItemStyle.Width = Unit.Pixel(200);
        colCaseTitle.DataField = "CaseTitleModal";
        colCaseTitle.HeaderText = "Title";
        colCaseTitle.SortExpression = "CaseTitle";
        **colCaseTitle.HtmlEncode = false;**
        dataFilterList += ",";
        this.spGridView.Columns.Add(colCaseTitle);

还将其添加到我要绑定的类中:

return "" + CaseTitle + "";

I was able to resolve this one myself:

        BoundField colCaseTitle = new BoundField();
        colCaseTitle.ItemStyle.Width = Unit.Pixel(200);
        colCaseTitle.DataField = "CaseTitleModal";
        colCaseTitle.HeaderText = "Title";
        colCaseTitle.SortExpression = "CaseTitle";
        **colCaseTitle.HtmlEncode = false;**
        dataFilterList += ",";
        this.spGridView.Columns.Add(colCaseTitle);

Also added this to my class that I am binding with:

return "" + CaseTitle + "";

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文