[英]Using a hyperlink in a dotnetnuke 5 module
I am creating a dnn 5 module to extend an existing website. 我正在创建dnn 5模块来扩展现有网站。 Everything has gone pretty well so far, but I cannot figure out how to link to another file inside my module.
到目前为止,一切都很顺利,但是我无法弄清楚如何链接到模块中的另一个文件。
Currently I have 2 files and their code behinds: 目前,我有2个文件及其背后的代码:
In View.ascx I have added this line: 在View.ascx中,我添加了以下行:
<asp:HyperLink ID="linkToEdit" runat="server" Text="Edit Page" NavigateUrl="EditMaintenance.ascx" />
However, when I click this link I am greeted with the following error: 但是,当我单击此链接时,出现以下错误:
HTTP Error 404.7 - Not Found The request filtering module is configured to deny the file extension.
How do I create a link to that file? 如何创建指向该文件的链接?
David is right. 大卫是对的。 Since it's a user control, you'll have to pass the full url, including the query string, into the NavigateUrl property.
由于它是用户控件,因此您必须将完整的URL(包括查询字符串)传递到NavigateUrl属性中。
Check this out: http://www.dnnsoftware.com/wiki/loc/print/page/module-navigation 检查一下: http : //www.dnnsoftware.com/wiki/loc/print/page/module-navigation
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.