Browser jumping to bottom of the page while running the application from Visual Studio?

Posted by Sheonarayan under Error and Solution on 3/3/2017 | Points: 10 | Views : 1424 | Status : [Administrator] | Replies : 0

This was a very strange problem I faced while debugging my application from Visual studio.

When I run the application, it appears in the browser fine but automatically scroll position jumps down to the bottom of the page after few seconds. This behavior was there in all browser like Chrome and Firefox. In Edge, the page was refreshing.

After much struggle, I figured out that it was because of the 'Browser Link' codes that appears at the last of the HTML source code when we run the application from Visual Studio. By default, it's setting in Visual Studio is on, so we can make it off by writing a appSettings in web.config file. Read more about it at http://www.dotnetfunda.com/forums/show/22294/how-to-remove-the-browser-link-from-browser-while-debugging-in-visual

The same can be done using Menu system as well.

When I disabled the Browser Link, everything was alright !

Regards,
Sheo Narayan
http://www.dotnetfunda.com



Responses

(No response found.)

Login to post response