A article on how to encrypt a querystring

Saturday, July 4, 2009

encrypt_querystring
www.codecollege.NET

A article on how to encrypt a querystring

encrypt_querystring
www.codecollege.NET

Good links for Network Load Balancing

Friday, July 3, 2009



server-load-balancing
 


 
Server_Load_Balancing_Basics


 


LoadBalancingAndTheASPNETStateServer
 


NLBwindows2003 


 




Highly Relevant and useful:
 




1. NLB1
 


2. NLB2
 




Supplementary Information:
 




3. NLB3
 


4.   NLB4
 


How to test NLB?
 

NLB5

 

NLB5

 


Types of NLB
 

NLB6

 

Good links for Network Load Balancing



server-load-balancing
 


 
Server_Load_Balancing_Basics


 


LoadBalancingAndTheASPNETStateServer
 


NLBwindows2003 


 




Highly Relevant and useful:
 




1. NLB1
 


2. NLB2
 




Supplementary Information:
 




3. NLB3
 


4.   NLB4
 


How to test NLB?
 

NLB5

 

NLB5

 


Types of NLB
 

NLB6

 

ASP.NET 4.0 & VS 2010

Thursday, July 2, 2009

Hi guys,

Yesterday I attended the session on ASP.NET 4.0 & VS 2010 @ Microsoft Singapore office. The session was good..

They are conducting this kind of session every month.

Pls find few useful links:
http://geeksengaged.com/default.aspx
http://www.microsoft.com/visualstudio/en-gb/products/2010/default.mspx

The session mainly highlighted features in ASP.NET 4.0/AJAX, MVC, Dynamic Data website using scaffolding and web deployment

VS2010:
1. CSS 2.1 support - ACID1 tested designer http://acidtests.googletoad.com/
2. HTML snippets - just by typing "tb" in html view, created asp.net textbox server control with predefined template
3. Extensive support for Jquery and javascript
4. XML documentation comments work everywhere including javascript
ASP.NET AJAX 4.0:
1. View State:
a. Disable on Page, enable on specific controls
b. disable on control and enable on child controls
c. Gridview control works without view state
2. URL routing for webforms
3. Getting Client ID for controls will be more easier.

4. Templates and Databinding:
Client side capabilities are enhanced a lot -
--WCF service which is hosted in the same domain can be called from your application client side using javascript

--data validation, format and rendering all can be controlled using simple template at client side and very fast!

MVC:
Full support for MVC - already available for download to use with ASP.NET 3.5
--Asynchronous controllers
--Sub controllers and views
--Declarative controls

Dynamic Data Scaffolding;
Data enables you to create a data-driven Web site with minimal or no additional code. An important feature of Dynamic Data is the scaffolding mechanism. When the scaffolding mechanism is enabled in a Dynamic Data Web site, ASP.NET analyzes your data model and generate Web pages dynamically for each table. These auto-generated Web pages provide display, insert, delete, and edit capabilities for each table.

For more info:
http://msdn.microsoft.com/en-us/library/cc488469.aspx
http://www.infoq.com/news/2007/12/aspnet-35-extensions-dec2007ctp;jsessionid=3140BCDF79F935609EEE45A8BC84DA24
--Declarative validation with datamodel
--Support for custom field templates

Web package deployment / Publishing:

Easy to package and deploy web apps in QA/Staging/Production. Commandline deployment.

<>
Few downloads:
1. ASP.NET MVC 1.0 - provides a new Model-View-Controller (MVC) framework on top of the existing ASP.NET 3.5 runtime
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b#filelist

2. Microsoft Pre-release Software Visual Studio 2010 and .NET Framework 4.0 Community Technology Preview (CTP) -
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=922b4655-93d0-4476-bda4-94cf5f8d4814
3. Creating a New ASP.NET Dynamic Data Web Site Using Scaffolding
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=77f86554-cb51-4392-9e24-c7c28075d1b1



Thanks & regards,

KannappaN Venkatachalam

Singapore

ASP.NET 4.0 & VS 2010

Hi guys,

Yesterday I attended the session on ASP.NET 4.0 & VS 2010 @ Microsoft Singapore office. The session was good..

They are conducting this kind of session every month.

Pls find few useful links:
http://geeksengaged.com/default.aspx
http://www.microsoft.com/visualstudio/en-gb/products/2010/default.mspx

The session mainly highlighted features in ASP.NET 4.0/AJAX, MVC, Dynamic Data website using scaffolding and web deployment

VS2010:
1. CSS 2.1 support - ACID1 tested designer http://acidtests.googletoad.com/
2. HTML snippets - just by typing "tb" in html view, created asp.net textbox server control with predefined template
3. Extensive support for Jquery and javascript
4. XML documentation comments work everywhere including javascript
ASP.NET AJAX 4.0:
1. View State:
a. Disable on Page, enable on specific controls
b. disable on control and enable on child controls
c. Gridview control works without view state
2. URL routing for webforms
3. Getting Client ID for controls will be more easier.

4. Templates and Databinding:
Client side capabilities are enhanced a lot -
--WCF service which is hosted in the same domain can be called from your application client side using javascript

--data validation, format and rendering all can be controlled using simple template at client side and very fast!

MVC:
Full support for MVC - already available for download to use with ASP.NET 3.5
--Asynchronous controllers
--Sub controllers and views
--Declarative controls

Dynamic Data Scaffolding;
Data enables you to create a data-driven Web site with minimal or no additional code. An important feature of Dynamic Data is the scaffolding mechanism. When the scaffolding mechanism is enabled in a Dynamic Data Web site, ASP.NET analyzes your data model and generate Web pages dynamically for each table. These auto-generated Web pages provide display, insert, delete, and edit capabilities for each table.

For more info:
http://msdn.microsoft.com/en-us/library/cc488469.aspx
http://www.infoq.com/news/2007/12/aspnet-35-extensions-dec2007ctp;jsessionid=3140BCDF79F935609EEE45A8BC84DA24
--Declarative validation with datamodel
--Support for custom field templates

Web package deployment / Publishing:

Easy to package and deploy web apps in QA/Staging/Production. Commandline deployment.

<>
Few downloads:
1. ASP.NET MVC 1.0 - provides a new Model-View-Controller (MVC) framework on top of the existing ASP.NET 3.5 runtime
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b#filelist

2. Microsoft Pre-release Software Visual Studio 2010 and .NET Framework 4.0 Community Technology Preview (CTP) -
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=922b4655-93d0-4476-bda4-94cf5f8d4814
3. Creating a New ASP.NET Dynamic Data Web Site Using Scaffolding
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=77f86554-cb51-4392-9e24-c7c28075d1b1



Thanks & regards,

KannappaN Venkatachalam

Singapore

Design Patterns for all – Chapter III (Factory Pattern)

Tuesday, June 30, 2009

Design Patterns for all – Chapter III (Factory Pattern)


This is a series of articles which explain Design Patterns in detail with C# examples. In the previous chapter we saw the Singleton Design pattern. In this chapter we are going to see the Factory Pattern in detail with c# coding. Factory pattern is one of the widely used Design Patterns in the Object oriented programming world.



Definition:

A Factory Patterns creates an Interface for creating object and lets subclass do the instantiation. A Factory Pattern lets a class to defer instantiation to the subclasses. Simply saying it abstracts the instance creation.



Overview:

It lets the developer create an interface and retains which class needs to be instantiated. The Factory pattern comes under the category of Creational Patterns.

Generally when we create a class, we will provide constructors to the users of the class so they can create instances for the classes. But on some situations we need or should not give them the ability to create instances with the available classes. On such situations we can create Factory Pattern. That is rather than calling the constructors for creating objects, you are calling the Factory to create objects.

Its primary purpose is to create objects like a real work Factory.



Logical Model:

The prime actors of the Factory Pattern are:

· Client

· Factory

· Product



Product:

A product can be anything you produce in the factory. In programmatic angle it will the actual object which needs to be created.

Factory:

A Factory is the one who creates object of the product.

Client:

A client instead of directly creating objects of the product uses the Factory to create objects for it. The client is not aware about how the objects are created.





Factory Pattern in .net Framework:

Some of the areas where Factory Pattern is used are given below,



· IClassFactory is an interface used to create instances of COM classes.

· System.Web.IHttpHandlerFactory class

· System.Convert



Example in C#:

In this example we are going to create we use Abstract classes instead of Interfaces as Abstract classes has the benefits like versioning, etc., over Interfaces.



using System;

using System.Collections.Generic;

using System.Text;



namespace FactoryDemo

{



abstract class Car

{

public abstract int Speed { get; }

}



abstract class CarFactory

{

public abstract Car ShowCar();

}



//Concrete is nothing but the implementaion for the absract classes

class ConcreteCar : Car

{

int _speed = 300;



public override int Speed

{



get { return _speed; }



}

}



class ConcreteCarFactory : CarFactory

{



public override Car ShowCar()

{



return new ConcreteCar();



}



}



class CarCompany

{



public void ProduceCar(CarFactory objfac)

{



Car mycar = objfac.ShowCar();

Console.Write("Car Produced with speed: " + mycar.Speed);

Console.Read();





}



}



class Program

{

static void Main(string[] args)

{

CarFactory mycarfactory = new ConcreteCarFactory();



new CarCompany().ProduceCar(mycarfactory);

}

}





}



Here the abstract classes Car and CarFactory provides the interface and the classes ConcreteCar and ConcreteCarFactory provides the implementation for the abstract classes. The CarCompany class uses all these to make the factory work.

In the simillar way you can create as many of Cars with different model like RollsRoye, Honda and there by creating classes for them by inheriting the classes Car and CarFactory.

But remember that the CarCompany class is abstracted from other classes.
www.codecollege.NET
Blog Widget by LinkWithin