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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -