Contents tagged with WebMatrix
-
Declarative helpers in Razor
ASP.NET Web Pages Beta 1 have support for Helpers, which are methods written in C# or Visual Basic, and returns IHtmlString. They can return HTML that is displayed on the page. If you choose to create helpers that way, you would need to have your HTML in an assembly, which makes it different to modify. Because of that, the new version of Razor supports declarative Helpers that you can create directly on the page. They work in both ASP.NET MVC 3 Beta and ASP.NET Web Pages Beta 2, which is included in WebMatrix.
-
Introducing NuPack
When you install ASP.NET MVC 3 Beta or WebMatrix Beta 2, a new product called ”NuPack” is installed with it. NuPack makes it possible to quickly add references to third party products like Ninject, jQuery and so on. All necessary files (dll, js etc) are automatically added to the project, and necessary modifications in web.config are automatically added.
-
What's new in ASP.NET MVC 3 Beta & WebMatrix Beta 2
Microsoft just released ASP.NET MVC 3 Beta, which came with some news. Among other things, we now have a new project dialog box, an updated version of Razor, support for helpers from ASP.NET Web Pages, new interfaces for Dependency Injection, unobtrusive jQuery validation and more. A new beta of WebMatrix has also been released.
-
Code-First with Entity Framework 4 and ASP.NET Web Pages
Scott Guthrie and Scott Hanselman have written great blog posts about how to use the new Code-First functionality in the latest Entity Framework CTP. But what about ASP.NET Web Pages?
-
Change settings for you web site in WebMatrix
When we create new sites in WebMatrix, they are automatically being used by IIS Express for rendering them. To modify how IIS Express is used, we can use the Settings page in WebMatrix.
-
Show logs in Web Matrix
A very interesting feature in Web Matrix is the possibility to show logs. When we visit a page through IIS Express, Web Matrix stores the requests which makes it possible to see them afterwards.
-
Introduction to ASP.NET Web Pages
When .NET Framework 1.0 was released you could create web sites using Web Forms, which looks a lot like how you used to create applications with Visual Basic and similar. The idea was to have an event driven way to create web pages, and that you should not have to take care of how it rendered the HTML. It became an success and many went from classic ASP and other languages to this new framework.