Archive for January, 2009

Print This Post This page as PDF Email This Post ASP.NET MVC Framework

Sunday, January 11th, 2009

By Rupen

Microsoft has released the MVC source to support the MVC structure with ASP.Net. The ASP.NET MVC Framework is a Model-view-controller framework.

What is ASP.Net?

Asp.Net is the web application framework developed by Microsoft. Software developers can create dynamic websites, web applications and web services using the ASP.Net. ASP.Net is based on .Net framework, which runs on CLR ? Common Language Runtime. Developers can write ASP.Net code various .Net languages like C#, VB.Net and many more.

What is MVC structure?

MVC is architecture with model-view-controller. This architecture differentiates the business layer and presentation layer.

Model part represents the Business data layer, which manipulates the application data.
View part represents the Presentation layer, which displays the design for user interface.
Controller part represents the Business logic layer, which communicates with Model part and View part.

What is ASP.Net MVC framework?

MVC architecture support with the ASP.Net is delivered by Microsoft with the source file under the name of ASP.Net MVC framework. The ASP.NET MVC Framework is a Model-view-controller framework architecture.

This manages the model, view, controllers using interface based contracts. Server ? Client post back communication uses the ASP.Net routing mechanism.

Views can be standard .aspx pages or different view engines can be used based on XSLT files.

Model maps to the database with entries into tables. All the data access and data manipulation tasks delivered through Model.

Controller handles the communication and updates the Model part, delivers necessary information to view part to render the user interface.

The ASP.NET MVC framework fully supports existing ASP.NET features like forms/windows authentication, URL authorization, membership/roles, output and data caching, session/profile state management, health monitoring, configuration system, the provider architecture, etc

ASP.NET MVC features:

- Provides complete control over your HTML markup
- Enables rich AJAX integration
- Intuitive website URLs
- Clear separation of concerns which results in web applications that are easier to maintain and extend over time.
- Testability ? including support for test-driven development.

For more information please visit following link,

http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx

To download the ASP.Net MVC framework visit following link,

http://www.asp.net/mvc/download/

To learn the ASP.Net MVC framework visit following link,

http://www.asp.net/mvc/learn/

Print This Post This page as PDF Email This Post MOSS21 / Things to remember for webpart development.

Saturday, January 10th, 2009

This article will help you to develop webpart quickly and easily. Remember following things during the werpart development. That will speed up the creation and deployment of the webpart.

Things to remember when creating and deploying webpart to the site:

  • Give Assembly name and namespace name for that right click on the project name in solution explorer and select properties. On Application tab give assembly name and namespace name.
  • On Build tab in output path give the bin directory path of the site on which you want to deploy the web part.
  • Open AssemblyInfo.cs file and add system.security namespace and also add [assembly: AllowPartiallyTrustedCallers()] and then save the file.

MOSS Webpart

  • Open the web.config file of the site on which you have to deploy the web part. Site bin directory is under the vitual directories. Path is C:\Inetpub\wwwroot\wss\VirtualDirectories.
  • In web.config file add safecontrol entry under safe controls section.

MOSS Webpart

  • Also Change the trust level: and change it to Full (Write Full trust level).

MOSS Webpart

  • Deploy the web part.
  • When you deploy the web part the dll of the web part that you have created had been created in the bin directory of that site folder under virtual directories.
  • On the site go to the web parts section. Click on the site settings menu under site action dropdown list and select web part click new tab and select the web part check mark the web part that you have deployed. And click on populate gallery button now you can add a web part on the web part zone.

MOSS Webpart

MOSS Webpart

  • Now you can add the web part on the web part zone.