For an ASP.NET MVC application, consider the following code fragment, where GetDetails will return HTML markup:
<%using (Ajax.BeginForm("GetDetails", new AjaxOptions { UpdateTargetId = "result" })) { %> <input type="submit" /> <% } %> <span id="result" />
<span id="result"></span>
<td><span id="result" /></td>
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.