My default browser is Chrome.
When I run my web applications within VS 2008 IDE, it uses chrome.
I want to use IE for this. Is there an option in VS 2008 to make IE the browser to load the web applications?
I just want this when using VS 2008 - I don't want to change my default browser each time otherwise.
EDIT: when creating a silverlight application.
Right click on .aspx file in your solution tree, and click Browse With...
then specify your default browser.
See this question: How do you change Visual Studio's default web browser?
But basically, create an html file inside your silverlight project, right click on it, select browse with... set the default browser. Now you can erase the html if you want to. The next time you debug your project, it will open with the browser you specified for the html file.
You could create a post-build event that runs FireFox.exe, pointing to the url of your website. You can edit post-build events by right-clicking on your Web Application, going to Compile, and clicking the Build Events button. Your post-build command could be something like "C:\Program Files\Mozilla Firefox\firefox.exe" http://localhost/mysite for example.
It sounds like you only have a Silverlight project in your solution. You need to add a web site like ASP.NET to your solution to use Browse With and post-build commands.
Related
I upload images to the server via ajax which are saved in the directory wwwroot.
After this operation page auto refreshing like "browser link".
How can I disable tracking for change in some directories in wwwroot ?
Thanks!
It seems you are talking about the Browser Link and not Browser Sync which is an extension in Visual Studio for ASP.NET projects.
Unfortunately, in either of them, there is no way you can disable it for specific directories. You can only disable them completely. Click on the link given above to learn more on that.
In a solution with many projects and pages, if you are working on file different than default.aspx and start debugging, VS will try to start the execution from the file you are working on, in many cases you will get error messages.
is there any way to set a page like "default.aspx" as starting point without having to open it and switch to it?
Right click on the file in solution explorer & click on set as start page.
if you have multiple projects in your Visual Studio solution, right click on the web application project as select set as startup project, then on the default.aspx page you want to be used as entry page of your debugging right click and select set as start page in the context menu. All of this in Visual Studio solution explorer, works fine with me since the times of Visual Studio.NET 2003 :)
We have a asp.net app, in which index.aspx is the default document in the website, instead of default.aspx.
Index.aspx is set as start page in the project too. but when I am trying to open for example: http://localhost:2265/, 1st I was getting the default.aspx page, after I removed the default.aspx file from the solution, now I have the directory listing displayed.
I would like to get index.aspx when I am entering http://localhost:2265/, is that possible to be set in the project or only in IIS?
Thanks in advance and happy holidays, Laziale
This is controlled from the server, which could either be IIS or the development server that's bundled with Visual Studio.
If you're launching the app from within Visual Studio, then the controls can probably be found under the properties of the ASP web site/app that you're launching. You could also right click the page itself and select "Set As Startup Page".
All of this doesn't affect the behaviour of the app once it's hosted in IIS, however. You'll need to find similar settings in the IIS page - there should be many a tutorial on the web for that (I can point you to one if you're having trouble).
Hope this clears up the behaviour of default pages!
Just open your solution in VS, then select the page you would like to be the startup page and do a right click and select 'Set As Start Page' option
In your project right click on the page you want to be your landing page and click "Set as Start Page".
This will only work when you run it from Visual Studio though. If you want to do it once it's deployed you will have to use IIS or setup a redirect I believe.
my web application open about:blank page when i tried to run it using Ctrl+F5.
i am using VS2008 C# ASP.NET web application.
also i set a start up page to the my project.
please what is this page?and how to overcome it?
thanks
Are you running IE8 for the first time via visual studio? Try browsing IE8 to google.com and running the initialization that pops up if so.
Seems your not alone: http://connect.microsoft.com/VisualStudio/feedback/details/473541/start-without-debugging-opens-blank-page-ie8-first
If that doesn't fix it try making another browser (firefox?) your default browser.
It could be that you have an issue with your server. If you look at you rsolution then, choose property pages, check that the Start Options are correct, especially if you are not using the "default web server" (this refers to vs2010 but I assume it is similar).
I would choose 'Use Current Page" if it isn't selected.
Something strange is going on for me.
I can open the web application on my desktop computer just fine, where it opens the asp.net MVC application with a URL like http://localhost:5118/ when I rigth click on the default.aspx file and choose 'open in browser'.
On my laptop, I don't have that option when I right click on default.aspx for some reason (it should give me the option to Open in Browser). I set the project as a web application, but it still doesn't work.
This is a vs.net MVC application.
I want to open the application without having to setup a IIS site for it.
You don't have what option on your laptop? Can you be a bit more clear?
Also, make sure your hosts file has:
127.0.0.1 localhost
-- this is advice from another site --
Can you see it under the File option while current page is aspx page? Shortcut key of "View in Browser" is Ctrl+Shift+W.
You can try to run "devenv /resetsettings" from Visual Studio command to reset settings.
You also can try to run "devenv /resetuserdata" to reset Visual Studio to its out-of-box state.