本文介绍了我们如何在MVC应用程序中添加链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生

我创建了一个mvc应用程序,并在名为contact.aspx的主文件夹中添加了一个页面.并在共享页面的母版页中添加如下所示的内容

<%:Html.ActionLink(联系人",联系人",首页")%>

此链接显示在主页上,但是当我们单击此链接时,会出现类似这样的错误

找不到资源.
说明:HTTP404.您正在寻找的资源(或其依赖项之一)可能已被删除,名称更改或暂时不可用.请查看以下URL,并确保其拼写正确.

要求的网址:/Home/contact


请帮助我,我该如何解决此问题.

在此先感谢

Dear Sir

I create a mvc application and add a page in home folder named contact.aspx
and add a like in master page in folder shared as given below

<%: Html.ActionLink("contact", "contact", "Home")%>

this link is show in home page but when we click on this link it gives an error like this

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Home/contact


please help me, how can i remove this problem.

Thanks in advance

推荐答案

Html.ActionLink("Contact", "Contact", "Home")


这篇关于我们如何在MVC应用程序中添加链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 20:25
查看更多