我正在创建一个DNN 5模块来扩展现有网站。到目前为止,一切都很好,但是我不知道如何链接到我的模块中的另一个文件。
目前,我有2个文件及其代码背后:
- View.ASCX
- view.ascx.cs
- edit -maintenance.ascx
- editmainance.ascx.cs
在view.ascx中添加了此行:
<asp:HyperLink ID="linkToEdit" runat="server" Text="Edit Page" NavigateUrl="EditMaintenance.ascx" />
但是,当我单击此链接时,我会遇到以下错误:
HTTP Error 404.7 - Not Found
The request filtering module is configured to deny the file extension.
如何创建指向该文件的链接?
大卫是正确的。由于它是用户控件,因此您必须将完整的URL(包括查询字符串)传递到NavigateUrl属性中。
查看此内容:http://www.dnnsoftware.com/wiki/loc/print/page/module-navigation