NinethSense oWnZ mE!: Praveen’s drawing book

Choose a Topic:

Thu
22
May '08

ASP.NET MVC Framework

MVC is a framework methodology that divides an application’s implementation into three component roles: models, views, and controllers.


* “Models” in a MVC based application are the components of the application that are responsible for maintaining state. Often this state is persisted inside a database (for example: we might have a Product class that is used to represent order data from the Products table inside SQL).

* “Views” in a MVC based application are the components responsible for displaying the application’s user interface. Typically this UI is created off of the model data (for example: we might create an Product “Edit” view that surfaces textboxes, dropdowns and checkboxes based on the current state of a Product object).

* “Controllers” in a MVC based application are the components responsible for handling end user interaction, manipulating the model, and ultimately choosing a view to render to display UI. In a MVC application the view is only about displaying information - it is the controller that handles and responds to user input and interaction.
Fri
25
Apr '08

Microsoft.NET 3.5 Enhancements Training Kit

The .NET Framework 3.5 Enhancements Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the .NET 3.5 Enhancement features including: ASP.NET MVC, ASP.NET Dynamic Data, ASP.NET AJAX History, ASP.NET Silverlight controls, ADO.NET Data Services and ADO.NET Entity Framework.

The .NET 3.5 Enhancements Training kit builds on the success of the Visual Studio 2008 Training Kit which resulted in 70,000 completed downloads since being released in November. These training kits provide a way for developers to grasp the breadth of the entire release, as well as dive deep into a specific technology.

The .NET 3.5 Enhancements Training Kit covers the technologies in the .NET 3.5 SP1 release and the out of band releases that are a part of the same wave, namely ASP.NET MVC and the ASP.NET Silverlight controls. Currently, the training kit contains six hands-on labs, made up of the following technologies:

1) ADO.NET Data Services
2) ADO.NET Entity Framework
3) ASP.NET AJAX History
4) ASP.NET Dynamic Data
5) ASP.NET MVC
6) ASP.NET Silverlight controls


All six labs contained within the kit have been tested and validated by customers during two .NET 3.5 SP1 training workshops held in Redmond. We will continue to receive customer and field feedback on the labs and incorporate the feedback into future iterations. There will also be new versions of the training kit with additional content, including presentations, demo scripts and screencasts.


You can download the training kit at http://go.microsoft.com/?linkid=8719735
Fri
18
Apr '08

DataSets vs. Collections

There is a good article on DataSets vs. Collections by Dino Esposito

If you read this article, you will start using (Generics) Collections instead of DataSet/DataTable for database access. :)


Here is the URL: http://msdn2.microsoft.com/en-us/magazine/cc163751.aspx
Tue
18
Mar '08

System.Net.Mail exclusive

I just gone through an interesting website which is exclusively for System.Net.Mail!

http://www.systemnetmail.com/

Also, there is another website from them - http://www.systemwebmail.com/ which is for System.Web.Mail (.NET Framework 1.1)
Fri
7
Mar '08

ASP.NET and MVC Framework?

One of the things that many people have asked for over the years with ASP.NET is built-in support for developing web applications using a model-view-controller (MVC) based architecture.

Here are two interesting links:

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

Scott Hanselman - http://www.hanselman.com/blog/ScottGuMVCPresentationAndScottHaScreencastFromALTNETConference.aspx
Wed
5
Mar '08

ASP.NET machineKey Generator

This tool allows you to generate random keys for valdiation and ecnryption/decryption of the view state. It builds a element which you need to include in your web.config file.

Sample:
 
<machinekey validationKey=“DE4B082DFE27D4FDF89849ED7D29FDB8050970B0C084107C4ECD6DA62E8EC850638E1630076FDA24B7008ED8A27AD68829F5E25F0059E0CFDB09A2446CB00B53″
decryptionKey=“809C6E2E73E009DE58E13F513696D634864491C70E80B8A2″ validation=“SHA1″ />
URL: http://www.aspnetresources.com/tools/keycreator.aspx
Mon
11
Feb '08

How to disable button after submit - ASP.NET

 
Button1.Attributes.Add(“onclick”, ClientScript.GetPostBackEventReference(Button1,“”) + “;
this.value=’Please wait…’;this.disabled = true;”);


If you check the source after rendering, it will look like this:
 
onclick=“__doPostBack(’Button1′,'’);this.value=’Please wait…’;this.disabled = true;”
Mon
7
Jan '08

How to add image to a button in ASP.NET?

Here is the code:

<button id=“btnOk” type=“button”>
<img src=“winxp.gif” />
<br />Text Also Here!
</button>
'

ASP.NET AJAX is built-into ASP.NET 3.5

It is nice that ASP.NET AJAX is built-into ASP.NET 3.5. For earlier versions we used to install saperately and I did not like it.

URL: http://www.asp.net/ajax/
Fri
2
Nov '07

List Server Varilables with ASP.NET

Here is the code which will list all the available server variables. (a typical subset of phpinfo() ;) )

File: ServVars.aspx
< %@ Page Language=“C#” %>
 
< !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
 
<script runat=“server”>
 
    protected void Page_Load(object sender, EventArgs e)
    {
        int i = 0;
        foreach (string s in Request.ServerVariables)
        {
            Response.Write((++i).ToString() + “. “ +s +” = “ + Request.ServerVariables[s] + “<hr />”);
        }
    }
</script>
 
<html xmlns=“http://www.w3.org/1999/xhtml” >
<head runat=“server”>
    <title>Untitled Page</title>
</head>
<body>
    <form id=“form1″ runat=“server”>
    <div>
    
    </div>
    </form>
</body>
</html>
The CodeProject Microsoft Developer Network Official ASP.NET Forums Microsoft .NET Framework Community Microsoft Most Valuable Professional Kidoos forums Microsoft Visual Studio Developer Home Professional Information Technology Solutions Microsoft Research Home Trivandrum Microsoft Users Group Community Website