问题标签 [html.actionlink]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
11 回答
252374 浏览

c# - 单击按钮时如何重定向用户?

我有一个带有按钮的视图。当用户单击按钮时,我希望他们重定向到数据输入视图。我该如何做到这一点?我应该提到视图是创建、测试和运行的。我可以通过输入网址找到他们。

我寻找解释如何连接按钮的 onclick 事件的步骤,但我是 MVC 的新手,在这一点上有点迷失。

谢谢!

0 投票
1 回答
269 浏览

internet-explorer-6 - Html.ActionLink 在 IE6 中不起作用

这适用于除 IE6 之外的几乎所有浏览器(IE7/8、Mozilla、safari、chrome)。这里的问题是链接显示为文本。

如何解决这个问题?IE6是主要要求之一。

0 投票
1 回答
116 浏览

asp.net-mvc-2 - Need some help understanding the usage of this Html.ActionLink()

I'm following the NerdDinner ASP.Net MVC tutorial and I have the following line of code:

What I don't understand is why the third parameter of the ActionLink requires a new {} command. Can someone please elaborate?

Why does it need to create a new {}, instead of just passing the ActionLink the Model.DinnerID without instancing it to another variable?

0 投票
2 回答
274 浏览

c# - asp:Repeater 和 ActionLink

我可以一起使用 asp:Repeater 和 Html.ActionLink 来创建动态菜单吗?或者有没有其他方法可以使用它?

注意:我从 SQL 获取菜单列表。

0 投票
1 回答
2916 浏览

asp.net - 将 HTML 转换为链接 ASP.NET MVC

我希望能够将 html 表的行转换为控制器的链接。我想像

我正在使用 MVC 2

谢谢。

0 投票
1 回答
766 浏览

c# - html.RouteLink 的工具提示

是否可以编写工具提示html.RouteLink

我的链接:

感谢并保重,Ragims

0 投票
1 回答
1546 浏览

asp.net-mvc - 在 asp.net mvc 资源文件中保存文本和链接 - resource.aspx.resx

我有一个带有 html 的句子。动作链接:

我怎样才能将它保存在resource.aspx.resx文件中?它在 asp.net mvc web 项目中。

0 投票
5 回答
34553 浏览

asp.net-mvc - 如何使用 HTML.ActionLink 插入图像?

如何在 html.actionlink - asp.net mvc 中插入图像?

我这样做了,但它不起作用。

0 投票
1 回答
10644 浏览

routes - 如何在 Html.ActionLink asp.net MVC 中调用路由名称?

我有这条路线

我使用<%= Html.ActionLink("God of War", "godofwar", "Games")%>了所有虽然它给了我这样的链接,somesite.com/psp/games/godofwar/但另一个链接也变成了这样,例如我的家庭控制器变成了这个somesite.com/psp/home/about/

如何调用路由名称,以便其他人没有 ViewGames 路由?

我不想尝试这个<a href="/psp/games/godofwar/">不好的......

0 投票
3 回答
149964 浏览

asp.net-mvc - ActionLink html属性

作品

不工作 - 为什么?

看来您不能将 data-icon="gear" 之类的东西传递给 htmlAttributes?

建议?