depends on how you want to do it.
right now you form is marked as run at server which means you will have to
rely on other controls to initiate a postback.
what you are using is a bog standard asp technique which is not normally
used with asp.net
in asp.net you have 5 validator objects from custom validtor (to implement
your own validtion on a particular control etc. or things like Required
Field Validation, compare validator, range validatior and regular
expressions validator. You have a validation summary object to display a
list of errors or display them in tabular format. with your form as it
stands right now you will have use add a Button or a ImageButton or a
Linkbutton (which are webcontrols) and write handling code to its onclick
server side event.
that is the preferred asp.net technique.
if however you wish to still use the old ways then remove all the
runat=server and you should have a form which you can do you own validation
/ submission. However keep in mind that you will not be able to use
webcontrol will rather be limited to using html input controls. In
otherwords you will just be doing asp programming not asp.net.
I would personally recommend that you use asp.net technique which is a lot
easier.
--
Regards,
Hermit Dave
(
http://hdave.blogspot.com)
"TJS" <no****@here.com> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl...
how do I get "onSubmit" to work in .net ?
<Form id="Form1" name="Form1" method="post" onSubmit="return
validateStandard(this, 'error');" runat="server">