我是Mvc的新手,我有一个问题归于@ Url.Action [英] I'm New In Mvc I Have A Problem Reguarded To @Url.Action

查看:70
本文介绍了我是Mvc的新手,我有一个问题归于@ Url.Action的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述













--------------------- ---------------------------------------行动---------- ----------------

[HttpPost]

公共ActionResult视图(int id)

{

int ids = id;

返回查看();

}



---------------------错误信息------------------------- ----

您正在寻找的资源(或其中一个依赖项) d已被删除,名称已更改或暂时不可用。请查看以下网址,并确保拼写正确。







------------------------------------------------------------Action --------------------------
[HttpPost]
public ActionResult Views(int id)
{
int ids = id;
return View();
}

---------------------Error Message-----------------------------
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.

推荐答案

试试这个@ htmal.Actionlink(显示名称,您的控制器名称,你的方法名称)





并查看此链接希望它有用



也检查这一个
try this @htmal.Actionlink("display name","your controller name","your methods name")


and check this linkHope it helpfully

also check this one


Isyour控制器名称视图&还有动作名称?

在链接上查看以下解决方案。你可以得到一些帮助.-

链接^

谢谢

:)
Isyour controller name Views & also action name?
Check the below solution on the link. You may get some help.:-
Link^
Thanks
:)


这篇关于我是Mvc的新手,我有一个问题归于@ Url.Action的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆