Edge developer window automatically pops up - microsoft-edge

I am doing some web development using Blazor Wasm framework.
I use Edge for debugging. For some reason the browser automatically pops up the following dev page, meanwhile the startup page is in loading status for 20-30 seconds.
Did you experience anything like this or can you suggest anything for fix?

Perhaps when you choose a browser to debugger the Application, you are adding the arguments to open the devtools.
For example, I'm using visual studio 2019, click the down arrow to the right of "IIS Express", and select the "Browse With..." option. The "Browse With" dialog box will open. Click the "Add" button.
Then, in the Program field, enter the path to Microsoft Edge. In the Arguments field, enter the command line switch to open devtools, --auto-open-devtools-for-tabs. In the Friendly Name field, enter something descriptive, for example, Edge Bate w/ DevTools.
After that, when we select this option to browse the website, it will open the website with devtools, like this:
So, check your Visual Studio, and try to re-add the browser without arguments.

Related

Docker Desktop - Set "Open in Browser" default page

When you click on the "Open In Browser" button, the site opened is localhost:port.
Is there any way to change this to open a specific page? (like localhost:port/swagger/index.html )
I'm creating the images using docker-compose in VS 2019 and have the default page set to swagger, and upon compiling it opens, but when clicking from Docker Desktop it doesn't
VS Code Docker Plugin has the same feature and I assume it would mirror the functionally.
It is implemented in this commit however the URL never sets a page only a port so it looks like it is not possible.
const url = `${protocol}://${host}:${mappedPort.HostPort}`;

Issue running MVC project while editing a View

To put it simple, whenever i run (debug) my MVC project while focusing a View (in the editor window) on Visual Studio 2012, the web page shown on the browser is the View itself rather than the actual landing page.
For example:
If my usual landing page is the following:
http://localhost:53338/
Then if i'm focusing the 'Add' View and I Run my project, it sends me here:
http://localhost:53338/Views/Products/Add.cshtml
Any idea how to 'fix' this?
Thanks in advance
Your web debug configurations are set to run the "Current Page".
Here are the steps on how to solve it:
Go to the project's Properties (Right-Click on the project -> Click on Properties).
Go to the Web tab.
Select the Start URL radio button and leave the address text-box blank.
In the Project URL type: http://localhost:[portNumber]/
Good luck

opening default browser with delphi at specific position

I want to open a web page at default browser at a specific position and also open another webpages at that one, not new task of that browser. maybe user opens new task of that browser but by clicking a button in my delphi program the selected web page have to open at first one. is that possible? my company wants me to program such thing BUT I do not know how to do. I really appricate any help. thanks.
There are instructions here to open the default browser, but you may even be able to "run" a url, as you can from the Windows run command. You then need to retain the handle of that process so that you can do something with it.
To open a web page at a particular point you would ideally use a named anchor in the page, ie, the bit after a hash: http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_a_name If you don't have control of the page and there are no named anchors you could try scrolling: How to scroll the scrollbar in external application via WinAPI?

How to create a link to web page?

I would like to create a link to http://localhost:3000 so that when clicked,
Firefox will be opened on that page. How should I do this ?
You create this link as with any other:
Link to localhost
Of course this links to the localhost of whoever accesses the page; so the result of my clicking the link is a very different location/event than if you click the link (assuming we're not using the same computer, obviously).
If we're talking about a desktop shortcut (and I'm assuming Windows XP, here):
Right click your desktop and go to New -> Shortcut.
In the program location, enter the location of Firefox (something like C:\Program Files\Mozilla Firefox\firefox.exe)
Once the shortcut is on your desktop, right click it and go to properties.
In the "Target:" field, append links with spaces between each:
Link to quoted answer.

How can I make visual studio open the controller Im currently on be default when debugging?

Right now it always goes to default.aspx that subsequently opens the default controller but I would like to go directly to the controller I am editing when I hit the debug button.
Right click on the Web Site in Visual studio and select Property Pages. The Start Options section gives you flexibility as to which page loads first. You can choose and set the Start URL option to something like http://localhost:1324/Home/Index to force debugging sessions to default to the HomeController's Index action.
This requires two things to be true:
1234 is a static port used by the Cassini web server when debugging your pages (you can change this behavior by pressing F4 on the web site's project and setting the Use dynamic ports setting to false and the Port number field to a port of your choosing.
The Web Site automatically starts up when you run the application from Visual Studio. Make sure it is by selecting the Property context menu item from the Solution's right click menu and editing the Common Properties -> Startup Project settings.
Alternatively, you can use the Use Current Page setting of the Start Options dialog. Developer beware though, as I'm not sure how MVC-aware this option is.

Resources