I am new to the .NET environment. I have not used vs 2008 much more times. I just started to develop some asp.net pages. I can develop asp.net pages & then use the menu bar in vs 2008 to start debugging. When I start debugging the asp.net web page gets displayed in IE. I want to know the trick by which we can make changes in our existing code in vs 2008 & then go to the IE & refresh our page & our pages should be displayed with the changes done without debugging every time. Is there any way to do this ? If there is any shortcut key then can you please tell me?
views:
29answers:
3how to switch between vs 2008 & IE (web page) after making changes in code written in vs 2008 ?
Try Ctrl+F5 ("Start without Debugging"). This should start your ASP.NET development server (was installed when you installed VS). Then reload the page in IE.
You can edit the HTML in your aspx page and click save, then click F5 (or Refresh) in your browser to reload your web page (with your changes).
Edit:
Also see this: http://msdn.microsoft.com/en-us/library/bcew296c(VS.80).aspx
When you run the debugger, it should load the cassini server and attach the debugger. If you stop debugging, the cassini server does not stop running. You should be able to continue to refresh the page even after you've stopped debugging.
If, for some reason, your cassini server is dropping, you can also set up your local IIS website for localhost to point to the directory where your website is, and then you could load it like any other website simply with http://localhost/.
Also, if you're developing a website instead of a web application project, you can make changes to the aspx and code behind files without stopping the debugger. Simply saving and refreshing after you make your changes should cause the page to recompile itself on demand and display what you want.