javascript - Is there anything like .js.erb templates in ASP.NET MVC 3? -
i adding jquery ajax functionality mvc 3 site. when use rails, make ajax call using $.getscript function render .js.erb executed on client (e.g. http://railscasts.com/episodes/229-polling-for-changes ). mvc 3 have equivalent javascript views?
yes does
public actionresult ajaxmethod() { /* stuff */ return partialview("viewname"); }
this return html of above view calling ajax method
Comments
Post a Comment