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:@@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.
Sasi ReddyPosted Jul 8, 2014, 10:21 AM
Try like this
grid.Column("MakeAppointment",format: @
new { PatientId=item.PatientId,DoctorId=item.DoctorId,Complaint=item.Complaint}, new { @class = "popupLink" })