View Engine dropdown not present while adding view - asp.net-mvc-2

I am creating MVC music store application by reading the PDF, in that on page 22 there is a method shown to add view but when I right clicked on it I am getting the below screen:
[Why I am not getting the View Engine Drop Down?]

Razor doesn't work in ASP.NET MVC 2 that's why you are not provided with this choice. You could use Visual Studio 2010 with ASP.NET MVC 3 installed. Only in ASP.NET MVC 3 projects you are provided with this choice.

This is for MVC 3 only. It seems you are using MVC 2.

Install Visual Web Developer Express 2010 as per section:
File -> New Project
Installing the software
This will give you the IDE used in this tutorial and allow you to view the ASP.Net MVC3 tooling options such as presented in the dialogue box.

Related

Why VS does not offer creating of MVC Controller using Entitity Framework

I am new to .NET Core and I still trying to get all puzzles together.
One strange thing for me is.
I am using VS2015 CE Update3
When I create new project under
Visual C# -> Web -> ASP.NET Core Web Application
And on next form when I Change Authentication to Individual User Accounts
In my project under Solution Explorer explorer there is context menu on folder Controllers with give me ability to create new Controller using Entity Framework
If I create same project without changing authentication mode.
I do not get ability to create MVC Conntolers using Entity Framework?
Why ?
What I am missing in project whitout autentification to be able to create Scaffold Conntolers and Views
Even if I install Entity Framework using NuGet according to ASP.NET Core Docs for Enitity Framework I still do not get ability to Scarfold MVC Conntolers
My apologies for spamming here on SO.
If I did not asked I will not ever find solution
Looks like this is know issue for .NET Core Preview 2 Visual Studio tooling
There is note on next docs which I did not not reach because I stacked on line bofore
Don't miss setting authentication to Individual User Accounts. You
won't be using authentication in this tutorial, but you need to enable
it because of a limitation of .NET Core Preview 2 Visual Studio
tooling. Scaffolding for MVC controllers and views only works when
Individual User Accounts authentication is enabled.

Defining standard event handlers in SAP UI5 when not using MVC

We are using SAP UI5 in SAP MII and if we use MVC it is not getting displayed in Portal, as portal in IE 9 makes rendering mode to Quirks whereas UI5 on MVC requires Standard mode in IE 9 to display the web page. We have also found that if we don't use MVC then UI5 web pages from portal are being displayed in Quirks mode itself. But the only problem we are facing on how to define the event handlers of UI5 standard events such as onAfterRendering. As there is no controller, the framework is not able to recognize the event handler when we define it in the usual way.
Any pointer on how to define standard event handler for UI5 in JS file shall be highly appreciated.
Thanks,
Dipankar
Not sure why not using MVC and in particular a controller would enable the controls to work in quirks mode. I wouldn't expect the controls to render correctly etc, and not using the MVC pattern doesn't sound like a maintainable workaround.
There are a few blogs and SAP notes related to the quirks mode on the SCN, I've enclosed a few below.
SAPUI5 on Portal
Does SAPUI5 actually work in the SAP Portal?
Regards,
Jason
Instead of trying to run UI5 in Quirks Mode, why not run Web Dynpro applications in Standart Mode by implementing OSS Note 1911889 ? Then, you can put your UI5 and Web Dynpro content in Unified Framework Page on EP.

Asp.Net MVC 2 model binding with ASPNetSpell textbox

How can I bind some data from my model into an ASPNetSpell textbox?
<ASPNetSpell:SpellTextBox ID="SpellTextBox1" runat="server">Some text to spell check</ASPNetSpell:SpellTextBox>
Looks like that it is server control and you can't use it in the ASP.NET MVC.
You can find out about some of the spell checkers for asp.net mvc project there or there or there.
UPDATE: You catch me. It works. I checked official site not careful in previous time. Did you check in the "how to" samples?
Getting Started with ASPNetSpell
ASPNetSpell & MVC
ASPNetSpell and the .Net Razor Framework

integrate mvc2 into existing webform webpage

HI,
i have large project which is created in asp.net webforms
I want to start using asp.net mvc withing the project.
How can i set it up? Have you some steps, helps guide pls?
thnx
Solved.
I have to convert existing website to web application. I have followed this guide
http://gurustop.net/blog/2008/08/03/converting-vs-2008-website-to-web-application/
Darin,
thank you for you info and it helped, as it gave me the right idea of approach.
You may take a look at the following blog post about how you could mix classic WebForms with ASP.NET MVC within the same application.

MVC 2 Areas not showing up in VS2008 context menu

I have converted my ASP.NET web forms project into an MVC project by adding the MVC ProjectType guid in the project file. All of my MVC 2 project items are showing up (View, Controller etc.) but for Areas. I have MVC 2 installed so I'm not sure what's not setup right.
Turns out that an MVC 2 project has a different GUID which makes sense since they are supposed to work side-by-side. I ended up using {F85E285D-A4E0-4152-9332-AB1D724D3325} .
P.S: You have to add this at the start of the element like this:
< ProjectTypeGuids >{F85E285D-A4E0-4152-9332-AB1D724D3325};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}< /ProjectTypeGuids >
It wouldn't load when I added it at the end (as described in Sanderson's book).