Registration Forms and No Javascript

P

pbd22

Hi.

Could somebody please tell me how to handle
registration when javascript isn't enabled? I don't
want an ugly <noscript> message that says "you
must have javascript enabled" but, rather I want
javascript to fire if javascript is enabled and, if it
is not enabled, i want the server code to fire. In
both cases, form validation is done and the user
won't be able to tell the difference.

What would my form tag and its associated attributes
look like to get this kind of logic to happen?

thanks a bunch
 
B

bruce barker

the standard validation controls do this, and if you write your own, you
can supply both client and server code. you need to check IsValid in
your postback handling.

you also need to avoid controls that require javascript to postback, for
example the linkbutton.

-- bruce (sqlwork.com)
 

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

Top