Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: validation of individual controls in a web form page?


Message #1 by "mohit nasery" <mohitnasery@y...> on Wed, 23 May 2001 15:33:19
i'm working on a project in vb.net, while developing a transaction form 

i'm getting a problem in validating the individual controls on the form....

currently i m able to get validation checks only after submitting the 

form, but i want that the moment i skip out  any control(e.g.out of  a 

textbox without entering the required information)it should be handelled 

immediately...i.e. error message should be displayed immediately, without 

pressing the submit button....is it at all possible...and if it is then 

how it can be done?



mohit
Message #2 by "Alex Lowe" <alowe@s...> on Tue, 29 May 2001 04:53:48
There are two levels of validation supported in ASP.NET pages. UpLevel 

validation only works with Internet Explorer 4.0+ and performs validation 

on both the client and server side. This sounds like what you are looking 

for. You can specify UpLevel validation on a page by adding the 

ClientTarget element to the Page Directive. 

For example:



<%@ Page ClientTarget="UpLevel" %>



The second level of validation is called DownLevel. Specifying DownLevel 

in your Page directive will cause validation to only occur on the server 

side. Also, if you don't specify a ClientTarget in the Page directive then 

the page will perform DownLevel validation.



hth,

Alex

http://www.asp-grandrapids.net

webmaster@a...





> i'm working on a project in vb.net, while developing a transaction form 

> i'm getting a problem in validating the individual controls on the 

form....

> currently i m able to get validation checks only after submitting the 

> form, but i want that the moment i skip out  any control(e.g.out of  a 

> textbox without entering the required information)it should be handelled 

> immediately...i.e. error message should be displayed immediately, 

without 

> pressing the submit button....is it at all possible...and if it is then 

> how it can be done?

> 


  Return to Index