Contents tagged with ASP.NET Web Pages
-
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.
-
Generate CSS Sprites in ASP.NET
Something that is very common on websites is small images that is used to make links and other things look better. These small images is either added as a background image for the link, or as a separate image. When you load these images, they are requested and downloaded separate. Since the browser only make a small number of requests at once, it can take a while before all images is loaded on the page. To solve this, you can use CSS Sprites.
-
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?
-
Routes with ASP.NET Web Pages
Det här finns att läsa på svenska här:
-
Run code automatically in ASP.NET Web Pages
Artikeln på svenska:
-
Show server information with ASP.NET Web Pages
Post in swedish:
-
Use caching in ASP.NET Web Pages
Artikeln finns på svenska här:
http://www.aspsidan.se/default.asp?page=readarticle&artId=709 -
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.