asp.net mvc 3 - Avoid layout page refresh on click of a link -
i writing web application in mvc3 consists of master page (header / menus) not change. when click on linkit causes refresh og whole page correct redraws whole screen , becomes annoying because on every post , whole screen flickers.
is there way not refresh layout page?
thanks in advance replies.
put want refresh in 1 view , make action point this,just that:
//layout head... <div id='maincontent'> @html.action("content","somecontrol") </div> //layout foot...
and use post new content , replace it:
//in refresh event $.post("/somecontrol/content",function(data){ $("#maincontent").html(data); })
Comments
Post a Comment