Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is inline coding with razor the only option with webmatrix?

Tags:

webmatrix

Or is it also compatible with asp.net or asp.net mvc?

like image 393
Manu Avatar asked Jan 21 '23 19:01

Manu


2 Answers

Check out this great post from Dave Ebbo: Link

WebMatrix is really a tooling story, that comes with a stack (IIS Express, SQL CE 4 and Razor) enabling you to create a new breed of ASP.NET page or site. Not only can you use WebMatrix to edit and maintain traditional ASPX pages (a la Forms or MVC), but you can use WebMatrix to edit PHP files, work with MySQL databases and manage PHP-based open-source apps (WordPress, Joomla, etc.)

Bottom line: inline with Razor is not the only option when using WebMatrix, though it is the default when creating new pages.

like image 159
Brandon Satrom Avatar answered Mar 16 '23 14:03

Brandon Satrom


WebMatrix only supports a folder-based project (i.e. a WebSite, not a Web Application Project). Because of this ASP.NET MVC is not supported.

However, you can have pure .cs files that you can reference from your .cshtml files. Just drop them in the App_Code folder.

like image 41
marcind Avatar answered Mar 16 '23 14:03

marcind