Browse by Tags

All Tags » VS2010 (RSS)
In ASP.NET MVC 2 we got support for client validation of the model. When we activate it, a JavaScript is generated and added to the rendered view. It contains all validation rules we set up for the model, and are used to generate error massages without...
Posted by Vimpyboy | 3 comment(s)
Filed under: , ,
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...
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...
With the release of ASP.NET MVC 2 we got support for DisplayTemplates and EditorTemplates, which make it possible to create custom forms for the edit views. With this feature, we can easily take advantage of the new input fields in HTML5 such as date...
Posted by Vimpyboy | 2 comment(s)
Filed under: , ,
What is ASP.NET MVC 3? In march, ASP.NET MVC 2 was released. It contains many new features such as data annotations, areas, validation and other things. These functions makes it easier to create larger projects where we easily can set annotations for...
Posted by Vimpyboy | 97 comment(s)
Filed under: , ,
When you install WebMatrix, SQL Server Compact 4 is automatically installed with it. If you only want to download just the database, you can do so here: http://www.microsoft.com/downloads/details.aspx?FamilyID=0d2357ea-324f-46fd-88fc-7364c80e4fdb&displaylang...
Posted by Vimpyboy | with no comments
Något som har funnits med ett tag, men som inte har använts särskilt mycket förrän när ASP.NET MVC introducerades är T4-templates. T4 är en akronym för ”Text Template Transformation Toolkit”, och gör det möjligt att skapa upp en mall som sedan kan användas...
Posted by Vimpyboy | 6 comment(s)
Filed under: , ,
När man skapar nya vyer i ASP.NET MVC så skapas en aspx-fil upp, vilken påminner en del om klassisk ASP. När man sedan går in på sidan så kan man se att kodblocken är utbytta mot HTML. Den här transformeringen sker i vad som kallas en View Engine. Som...
Posted by Vimpyboy | 2 comment(s)
Filed under: ,
I första versionen av Entity Framework som kom i .NET 3.5 SP 1 fanns till största delen grundläggande funktionalitet för att kunna koppla sig mot en databas snabbt och enkelt och utföra operationer. Dock saknades väldigt mycket, och på grund av en mängd...
För att kunna skicka värden till våra action-metoder tvid vanliga GET-anrop så kan vi använda route-värden. Som standard i ett ASP.NET MVC-projekt finns ett sådant värde i routen vid namn ”id”. I global.asax ser det ut så här: routes.MapRoute( "Default"...
Posted by Vimpyboy | with no comments
Filed under: ,
More Posts Next page »