Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to insert content to Ajax.ActionLink

In Asp.net mvc3 razor I have:

Ajax.ActionLink("Hello world", "Hello", "Say", new RouteValueDictionary(new { word = "Hello" }),new AjaxOptions { HttpMethod = "GET", InsertionMode = InsertionMode.Replace, UpdateTargetId = "dynamic-container" })

it produces

<a href="...." ...>Hello world</a>

What I would like to get is

<a href="..." ...><my><html><content/></html></my></a>

How can I pass "" so that it will be inserted instead of the standard text?

like image 851
4rchie Avatar asked Jan 17 '23 15:01

4rchie


1 Answers

I've just found a solution

http://forums.asp.net/post/4517653.aspx

It's not as elegant as I would expected but should do.

Anyone has a better idea?

like image 87
4rchie Avatar answered Jan 29 '23 05:01

4rchie