"Browse With..." button missing in VS 2012 - asp.net-mvc

I upgraded my MVC 3 project to MVC 4 according to the instructions here:
http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253806
Everything works fine, except that I don't have the new Browse with.. button appearing in the toolbar, nor can I activate this option in the project's context menu.
I should note that the button appears properly in new MVC4 projects (i.e. those created from scratch instead of upgraded).
How can I fix this?
Update:
See workaround in my answer below.

Right click on the top menu and add in the 'Standard' Toolbar.
If it's still not there you can right click -> Customize, select the 'Commands' tab. Select Toolbar: Standard then hit 'Reset All' (this will only reset the 'Standard' toolbar).

Try just adding an '.aspx' web forms file to your project. You should get the 'Browse with ...' option in the context menu when right clicking on that file in the Solution Explorer. You should be able to change the browser that way. Then you can delete the '.aspx' file once you have chosen your browser. I have had to do this in the past.

I was able to fix it by creating a new .sln and adding my projects to it.

Related

split button outlook command add-in

I am designing a menu for an outlook add-in using Node.js
I would like that menu to behave like these SplitButton (a button that can trigger events adjacent to a dropdown menu). If you look at the splitbutton picture, It shows the paste button you see on Office Word as an exemple; if you click paste, it will paste by default but the the dropdown menu next to it has a seperate action that gives you different pasting options in the form of a dropdown menu.
I am using this the manifest found in this tutorial https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/manifests , unfortunately the menu button cannot have any event attached to it, just give the dropdown menu.
A description of what I am trying to achieve can be found here https://www.codeproject.com/Articles/18447/SplitButton-a-NET-WinForm-control-Part-1, the button part and the split part can have their own actions. Is there a way to do this inside the outlook add in manifest? I am using node.js
Currently the whole button works as a dropdown.
Thank you
Currently the feature you requested, is not a part of the product. We track Outlook add-in feature requests on ourĀ user-voice page. Please add your request there. Feature requests on user-voice are considered, when we go through our planning process.

Umbraco 7 navigation menu link is not working

I am new to Umbraco. Currently, I am facing an odd problem, which is some navigation link in the menu bar does not working properly.
For example, in my navigation link, I use relative link:
When I click that link on the web page, it redirect to error page, says cannot find the template. However, if I jump to Umbraco Admin page, and click link to document: /target, then it works!
I suspect when I trying to access /target from the webpage, it cannot find the document pointing to.
Could someone tell me some possibilities?
Have you tried to republish the node? Also ensure that a template has actually been set on the content node.

Set Startup Project in VS 2012 Web Application

Is there an easy way to set the web application as the startup project and not have it change automatically? In the solution explorer I right click on the project and hit "Set as Startup Project" but if I end debugging and try to start again, VS tries to set whatever page I'm working on as the startup project. Am I missing something or am I just being picky?
Thanks in advance.
Set web project as startup:
Right click the solution, under common properties > startup project, ensure the correct startup project is selected:
To set a specific page within the project:
Right click on the project, select 'Web' then under 'Start Action' you can set exactly what page you would like to start. If you want to load a specific page, select the 'Start URL' option and enter a URL. For example in MVC use /Controller/Action
set as start page in vs2012
Right click the Project
Select Properties
Click on Web
Select Specified Page
Specifies the controller/action you want to always start. Example: Home/Index
Enjoy!

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

Open page in silverlight out of browser

Is there any way to open a page in the browser by clicking the app in out-of-browser mode?
Thank you
HyperlinkButton works. I was trying with HtmlPage.Window.Navigate with no success. And because the button supports content it is simple to create something like a linked image.
Agreed with Artur and simple way to do this is :
1) Put HyperLink Button in your Silverlight page.
2) Generate Click event and provide :
hyperlink.NavigateUri = new Uri("Url",UriKind.RelativeOrAbsolute);
3) Simply Run the Application and Click on HyperLink Button.

Resources