@Ajax.ActionLink(
"Link Text",
"RefreshTestStatus2",
"refresh",
new AjaxOptions {
UpdateTargetId = "status",
InsertionMode = InsertionMode.InsertBefore })
But I would like to use something that looks like a submit button to fire it. Does anyone know how to do this?
Judy
I decided to implement it as an Ajax form.
@using(Ajax.BeginForm(
"RefreshTestStatus2",
"refresh",
new AjaxOptions {
UpdateTargetId = "status",
InsertionMode = InsertionMode.InsertBefore }))
{
<input type="submit" name="submit" value="Link Text" />
}
I think it's safe to say it's not as clean an Ajax.ActionLink, but gives you an input button.
One option would be to use some css to make the link look like a button
such as this example
also see the related question here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With