Sunday, February 14, 2010

using System.Collections;
public partial class sample : System.Web.UI.Page
{
Col < string > str = new Col < string > ();
Col < int > inser = new Col< int >();
protected void Page_Load(object sender, EventArgs e)
{
str.Val="hai";
str.Val = "hello";
inser.Val=1;
inser.Val = 2;
inser.Val = 3;
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = str.Val.ToString();
Button1.Text = inser.Val.ToString();
}
protected void Button2_Click(object sender, EventArgs e)
{
ArrayList al = new ArrayList();
for (int i = 0; i < 100; i++)
{
al.Add(i);
}
DropDownList1.DataSource = al;
DropDownList1.DataBind();
}
}
public class Col< T >
{
T t;
public T Val
{
get
{
return t;
}
set
{
t = value;
}
}
}

.net Framework 2.0 Feature

Partial Class - Two more user can work with same class name

Master Page - Master Design Applied to Child Page

Ajax Control - Used to Design good webpage

Generics - Handle two different Datatype in Array List

.net Framework 3.5 Feature

WPF- Windows Presentation Foundation

WCF- Windows Communication Foundation

WF- WorkFlow Foundation

Linq