Many thanks to Alexander! Thanks for putting me on the right track. I have not tried your last code, but I was able to get your previous code. Here is the working code. I'm sure this is all stupid, but maybe someone out there could show me a more elegant solution:
<script type="text/javascript"> $(document).ready(function() { $("#myVal").change(function() { changeActionURL(); }); changeActionURL(); }); function changeActionURL() { var url = '<%= new UrlHelper(ViewContext.RequestContext).Action("Action", "Controller") %>' + '?dup=' + $("#myVal").val(); $("#u").attr('href', url); } </script> <a id="u" href="" onclick="Sys.Mvc.AsyncHyperlink.handleClick(this, new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace, updateTargetId: 'HellaYeah' });">Report Dupe</a> </p> <div id="response">not done</div>
My solution, as you can see, is to simply copy the LINK code instead of trying to use the ASP.NET AJAX helper class.
Whozumommy
source share