TechBubbles Microsoft Technology BLOG

TagASP.NET

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...

ASP.NET MVC 4 Application Templates explained

When you create a new MVC 4 project in Visual Studio 2012, you will be presented with different option as shown in the below picture, Each project template sets up different folders in your application. This post explains the each project template purpose Empty Template The new Empty Template has got assemblies, web.config and basic folder structure. No default page, you have to add everything...

ASP.NET MVC Release History

ASP.NET MVC is a framework for developing web applications and first version was released on year 2009. Thanks to ScootGu who introduced this framework for ASP.NET Web Development. If you wonder why Microsoft released another framework when there is Web Forms then read this post. This post outlines the ASP.NET MVC release history and their features. ASP.NET MVC 1 ASP.NET MVC 1 was released on...

ASP.NET Profiles overview

ASP.NET Profiles feature allows the users to personalize their content on the web site. Profiles can be used in different scenarios like when you visit the news web site or sports website then you can allow the user to choose their favourite categories and then you can store them in a profile to show the pages based on their preferences. Using ASP.NET Profiles you can keep the user details such...

CORS support for ASP.NET Web API

  What is CORS? Cross-origin resource sharing (CORS) is a standard that allows your web pages to make AJAX requests to another domain. The idea of implementing this standard to ASP.NET Web API came from Brock Allen. This post outlines the preview of CORS support for ASP.NET Web API.If you try to make a request to a service that is hosted in different domain then browser actually blocks that...

TechBubbles Microsoft Technology BLOG

Follow me

Archives

Tag Cloud