Server Side Scripting in ASP.Net

G

Guest

Hello,
I am new to .Net, I want to know how do I code Server Side
Validation scripting in a .aspx page. I am using Visual Studio .Net 2005.
Please Help me.
Thank you
 
H

Hans Kesting

Hello,
I am new to .Net, I want to know how do I code Server Side
Validation scripting in a .aspx page. I am using Visual Studio .Net 2005.
Please Help me.
Thank you

Drag a CustomValidator onto the page, set properties like ErrorMessage
(it's permitted to leave ControlToValidate blank!). Double click it, to
create a server-side handler.
Add any testing code and set the args.IsValid to true or false,
depending on the result of the test.

Note: when you set the ControlToValidate to some control (textbox), and
the value of that control is empty, the validator (read: your server
side code) is NOT run. If you leave ControlToValidate empty, your code
is always run.

Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top