I have a view that contain a image i want to set a button to reload this image by calling an action in my controller like this :
<a href="javascript://" class="Button ButtonLarge" id="Reload"><span><span class="ButtonIcon NewTopic">Refresh</span></span></a>
and the action like this:
public ActionResult Image()
{
var builder = new XCaptcha.ImageBuilder();
var result = builder.Create();
Session.Add("SecurityNumber", result.Solution);
return new FileContentResult(result.Image, result.ContentType);
}
i need to call this action using javascript and set the new image source any help will be good