get HTML of current page without ViewState ASP.Net

前端 未结 3 1773
灰色年华
灰色年华 2020-12-18 09:03

Is there any way through which I can get HTML of my current page. By current page I mean let\'s say I am working on Default.aspx and want to get HTML by providing a button

3条回答
  •  庸人自扰
    2020-12-18 09:43

    I'm still not sure what your objective is with this. But if you want the total rendered output of the page then your probably better of looking at some client side code as this would be run once the server has returned the fully rendered HTML.

    Otherwise you could proably catch the page unload event and do something with the rendered content there.

    More info needed on what you want from this.

提交回复
热议问题