Razor and c# are server side. Ajax is client side.
I think the path of least resistance for someone from web forms is a set of tools like
Telerik[
^]
If not, then you can always make a controller endpoint that uses a JsonResult rather than an ActionResult. You can call it from jquery (or regular javascript) and update the page with the results.
function foo(){
$.ajax({
url:'yourendpoint',
data:{arg1:value},
success:function(data){
}
});
}
public JsonResult MyEndpoint()
{
var myData =
return Json(myData,JsonBehavior.AllowGet);
}
You can get much more complex with ajax forms, etc... but I think that is the easiest way to explain it.