Archive for October 29th, 2007

How to add extra control in your VS.NET?

Monday, October 29th, 2007

To Add extra Control in your VS.NET do following steps.

1. Open your own project inside Visual Studio .NET.

2. Open the file containing the form you wish to add the control(s) to.

3. Right click on the Toolbox and select “Customize Toolbox”.
4. Click on the .NET Components tab.
5. Click the Browse button and select the AMS.TextBox.dll file.
6. The 9 controls will be added to the Customize toolbox and will be check marked. Click

on the Namespace column to sort by it, so you can see them more easily.
7. If you wish, remove the checkmark from the ones you’re not going to use.
8. Click OK. The controls will then appear on the toolbox.
9. Drag and drop them to your form and use them like regular TextBoxes.
10. The behavior-related properties will appear under the Behavior category in the Properties toolbox of the form designer.

Posted by Mahesh ( Tryangled )

how to create Numeric and String only Textbox control in ASP.NET?

Monday, October 29th, 2007

The TextBox accept only numeric Values using following steps in ASP.NET

1. select Textbox control and drag in to Web Page.

2.Select “RegularExpressionValidator ” Control and paste in to Web Page.

3.Right Click->RegularExpression Control and select Property.

4. Set the following Validation Expression

//is numeric validation

([0-9])*

//String Validation

([a-z])*([A-Z])*

5. Run

Posted by Mahesh ( Tryangled )