views:

150

answers:

2

Is it possible to create an invisible Ajax.ActionLink?

Ajax.ActionLink("", "Action", Args, AjaxArgs)

The above doesn't work, LinkName (1st argument) cannot be Null or Empty...

A: 

You might just have to wrap it in a div like this:

<div style="{display:none}">Ajax.ActionLink("", "Action", Args, AjaxArgs)</div>
Praveen Angyan
A: 

You can add a style html attribute:

Ajax.ActionLink("LinkText", "Action", Args, AjaxArgs,new{style="display:none;"})
Marwan Aouida
Nice, overlooked the last optional argument :)
Ropstah