Use the below code in your javascript and Load your view from javascript function
var url = '@Url.Action("MyPartialView", "MyController")';
url += '/?Id=' + TestId ;
$("#tab1").load(url);
Put the below Code in your Controller
public ActionResult MyPartialView( int id )
{
return Partial( "MyPartialView", id );
}
Hope this helps
No hay comentarios:
Publicar un comentario