Visual Studio 2013 preview was announced in TechEd 2013 by Brain Harry. This post outlines the new features in Visual Studio 2013 preview project templates, Scaffolding update and Web tooling features. When you create a new project in Visual Studio 2013 then you can see only one entry under web category in new project dialog box. You can still see a Portable Class Library entry but that will go...
Using ListView Control in ASP.NET 4.5
ASP.NET ListView Control has a great features that GridView and Repeater controls had control over the markup. The ListView Control allows you to display the data in various formats including grid format, bulleted list format and in flow format. You will be having the better control on HTML and CSS to format the data. This post explains the ListView templates, properties and Inserting and...
Validation Components in ASP.NET MVC
Validating the user input and showing a user-friendly error message is an important step in Web Application development. ASP.NET MVC framework provides validation features which helps developer to validate model values. The validation features in MVC allows you to write the validation using attributes which is called data annotations. This post outlines the data annotation features that you can...
Using Caching in ASP.NET Web Applications
Caching is a way which you can use to improve the performance of an ASP.NET Web applications. Caching is a location where you can store the data and access quickly. You have to use caching carefully and this post explains different caching mechanisms that available in ASP.NET web applications.The three ways that you can use to store the Cache data in ASP.NET applications are Output Caching...
Seeding a Database in Entity Framework
The code-first approach of Entity Framework creates the database in LocalDB instance of SQL Server Express. The Entity Framework uses the model’s property names and data types to create the tables.Entity Framework uses EdmMetadata table to synchronize model classes with the database schema. To keep the database in sync with the model you need to re-create an existing database using Entity...
Scaffolding in ASP.NET MVC4
What is Scaffolding? Scaffolding in ASP.NET MVC generates the code for create, read, update and delete operations in your application. This post outlines the different Scaffolding templates available in MVC4. If you do not like the default scaffolding then you can customise the code generation.You need a model to start working with scaffolding so build a model first by creating new ASP.NET MVC4...
Filtering the Data with Data Source Controls in ASP.NET
ASP.NET comes with Data Source Controls (SqlDataSource,EntityDataSource,LinqDataSource and ObjectDataSource) which allows you to bind the data to your data-bound controls. The SelectParameters element in Data Source controls enables you to supply values at run time for filtering the data. This post outlines the steps to using the Filters with Data Source controls. The Possible sources that you...
Adaptive Rendering in ASP.NET 4.5
Adaptive Rendering also called responsive design taking the advantage of existing HTML markup and CSS to use inside the ASP.NET Web applications. This post outlines about Adaptive Rendering, display modes and out of the box ASP.NET MVC mobile template.What is unique about .NET 4.5 application templates that ships out-of-the box uses a technique called responsive design. Responsive design is...
ASP.NET MVC RAZOR View Engine Overview
ASP.NET MVC contains two view engines named Razor view engine and Web Forms view engine. This post outlines the Razor view syntax, sample code expressions, code blocks, layouts and compares some code expressions with Web Forms view engine.The Razor View engine was introduced in ASP.NET MVC3 and it is default view engine that you get when you create new MVC project in Visual Studio. Razor view...
Tracing in ASP.NET
ASP.NET Tracing can be used to investigate the behaviour of the site at run time. Usually to know the value of a particular variable at runtime, you may thought of printing them on screen by assigning text to a control. ASP.NET Framework built-in feature tracing can be used to know the values at runtime without writing any code. You can add additional information to Trace. This post outlines the...