Vailidators vs Authentication

M

Mr Newbie

I have run a across a very weird problem.

I have a feedback form which works really well. I decided to put validators
on the form which run client side checking. Upon requesting this form with
the validators on, my browser is asking me for credentions to the web site.
UserName & Password.

If I take the validators off, then this goes away.

I have two questions.

1.) Does anyone know why this is happening.

2.) Does validation take place both on server as well as client side ?

Thanks for your help
 
D

danny.rendle

Mr Newbie,

I have no experience of your 1.) but I do know about 2.).

Validation doesn't automatically take place server side, you have to
check if the form is valid.

Thankfully all you need do is check the boolean returned by
Page.IsValid.

One note of warning: If you are using Custom Validator controls you
will need to write a server side equivalent of the validation method
(In Visual Studio 2003: Double Click the custom validator in design
view and VS will generate the bare bones of the method).
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top