本文介绍了如何使用Actionlink从Webgrid列弹出部分视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

html.actionlink在mvc3 razor中分配类名错误:



hai我正在尝试使用webgrid列上的partialview popup单击使用操作单击i我无法为动作单击分配一个类名



代码是



Model.grid.Column (columnName:Conformation_email,标题:Conformation e-mail,格式:@< text> @ Ajax.ActionLink(linkText:(string)@ item.Conformation_email,actionName:GetSCTargetSystem,new {controller =MyController ,id = 1},新{@class =my-class}))



新的它显示错误,如

命名参数规范必须在指定了所有固定参数后出现。

html.actionlink in mvc3 razor error in assigning a class name:

hai i am trying to work with partialview popup on webgrid column click by using action click i am not able to assign a classname to the actionclick

the code is

Model.grid.Column(columnName:"Conformation_email",header:"Conformation e-mail", format:@<text>@Ajax.ActionLink(linkText: (string)@item.Conformation_email,actionName: "GetSCTargetSystem",new { controller = "MyController", id = 1 }, new { @class = "my-class" }) )
and
at new it is showing error like
named argument specification must appear after all fixed arguments have been specified.

推荐答案

这篇关于如何使用Actionlink从Webgrid列弹出部分视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 11:25