Go Back   WM Voice Forum > The Community > My How-To
User Name
Password
Reply
 
Thread Tools Search this Thread
Old 10-13-2004, 06:23 AM   Warn ashish · View ashish's Warnings · #11
ashish
Registered PLUS
 
ashish's Avatar
 
ashish is Offline:
Trader Rating: (0)
Style:
Posts: 56
WO Dollars: $158.84
ashish is on thier way up
Default

Hello all,

Here is some information on Web Server Controls in ASP.NET


Web Server Controls - Just like HTML server controls, web server controls are also created on the server once again requiring the 'runat' attribute in the <form> tag. However these controls are different from the HTML server controls as these are controls that are special ASP.NET tags that are recognised by the server.

ashish's Sig:
Cheers,

Ashish
WWW.M6.NET
  Reply With Quote
Old 10-21-2004, 05:53 AM   Warn ashish · View ashish's Warnings · #12
ashish
Registered PLUS
 
ashish's Avatar
 
ashish is Offline:
Trader Rating: (0)
Style:
Posts: 56
WO Dollars: $158.84
ashish is on thier way up
Default

Hello Everyone,

Here is some more 411 on ASP.NET

The Third and last control in ASP.NET is the


Validation Server control: As the name suggests, these are controls that perform some kind of validation on data entered by the user.

What is Validation: It is a way of checking that the data entered by the user is correct and relevant before a action is performed otherwise a error message is generated to the user. There can be many different kinds of validations.

For Example you might want to validate the age of a person, i.e. in a member registration form you might want the user to be of a specific age before S/he is allowed to register, you can do that by validating the age of the person and informing them if they are below the age.

Validations can also be used to make sure that a particular data is filled by the user for example the password field in some registration forms.

Another kind of validation that you can make is that a field should hold only a certain type of data, like the 'Name' Field in a form should only accept characters and if there are any other characters present then the user should be informed of the error.


ASP.NET comes bundled with a good amount of validation controls, like most languages it allows you to make your own validation criteria as well

Again these controls must be coded in the <form> tag with the runat "server" attribute and a id.


for more information you can visit:
www.411asp.net
www.w3schools.com
www.code******.com

ashish's Sig:
Cheers,

Ashish
WWW.M6.NET
  Reply With Quote
Old 11-16-2004, 04:05 AM   Warn ashish · View ashish's Warnings · #13
ashish
Registered PLUS
 
ashish's Avatar
 
ashish is Offline:
Trader Rating: (0)
Style:
Posts: 56
WO Dollars: $158.84
ashish is on thier way up
Default

Hiya,

back after a loooong time

ASP.NET has got some 6 validation controls


CompareValidator - Is used to compare two different values, returns a Boolean expression.


RequiredFieldValidator - Is used to make sure that there is a value entered in a particular input control i.e. there has been a change of value in the input field, by default the value of such a field is set to "" and if there is no change in this value, it returns a error.


RegularExpressionValidator - You can use this to make sure that the data entered in a particular field is in a pattern defined by you, for example, there might be a field where you want the user to enter the phone number along with country and area code, you can check that the user enters the data in that pattern other wise show an error to the user.


ValidationSummary - This control returns a list of error messages generated by the various validation controls used on a web page.


RangeValidator - Used to check that the data entered by the user is in between a certain range, i.e. the data entered by the user must be between a certain upper & lower limit. You can use it for numbers, character & dates.
For ex: You might want the user to enter a month and so that implies that it should be between 1-12, anything else should normally generate an error. You specify the ranges by using the 'MaximumValue' & 'MinimumValue' property.


CustomValidator - Sometimes you want to perform a validation that is not provided in ASP.NET validation controls, so ASP.NET allows you to code a user defined validation and call it in the CustomValidator. Take the case of a registration form where you want the user to have at least 8 characters, so you write the code to check that and then use it through CustomValidator.

some information from www.w3schools.com & www.411asp.net

ashish's Sig:
Cheers,

Ashish
WWW.M6.NET
  Reply With Quote
Old 11-30-2004, 03:41 AM   Warn intek · View intek's Warnings · #14
intek
Registered
 
intek is Offline:
Trader Rating: (0)
Style:
Posts: 3
WO Dollars: $53.00
intek is on thier way up
Default

Some good info, Thanks
  Reply With Quote
Old 11-30-2004, 03:59 AM   Warn ashish · View ashish's Warnings · #15
ashish
Registered PLUS
 
ashish's Avatar
 
ashish is Offline:
Trader Rating: (0)
Style:
Posts: 56
WO Dollars: $158.84
ashish is on thier way up
Default

no problems.. as i said just trying to share whatever knowledge i have with everyone

ashish's Sig:
Cheers,

Ashish
WWW.M6.NET
  Reply With Quote
Old 11-30-2004, 07:55 PM   Warn Steve · View Steve's Warnings · #16
Steve
WMT Addict PLUS
 
Steve is Offline:
WMT Contributor
Trader Rating: (0)
Style:
Posts: 911
WO Dollars: $90.00
Steve is quite well known
Country: United States
Default

Please continue to do so, Ashish. It's appreciated.
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump