Forum


18:35

16/03/2010

I need to add an html.action link in my jqgird. I have a field with an invoice number, I need to make that invoice number be a clickable link that will go to a controller that will just return a different view base on the invoice number as the parameter. How can I add the markup for the actionlink to my gird view? Any thoughts?
23:44

19/03/2010

An action result will not work for this as far as I know.
The actionResult helper automatically encodes HTML, you don't want this. Other wise you will see the actual html show up as text in the girdview.
You can however just give it a string that has an the html <a> with the hfref set to 'controller/action/id' this should work for you just fine.
i would use the invioce number as your ID, and your text for the link
🙂
Most Users Ever Online: 715
Currently Online:
49 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66