for the client side
In Internet Explorer
Right click on browser -> View Source
In firefox
Right click on browser β View Source page
for the server side
You can override the way your page renders to capture the server side HTML source.
protected override void Render(HtmlTextWriter writer) {
source share