M
Mong
Hi,
I have a webform with various asp controls on it such as textboxes and
dropdownlists. I'm fairly new to asp.net coming from VB6 and am
wondering when it's best to use client side events and when it's best
to use server side events.
For example, if a textbox is to contain a date I want to validate the
date when that textbox loses the focus. If the date is not valid I
make visible a label next to the textbox telling the user it's
invalid. At the moment I'm doing this in the server side TextChanged
event for the textbox and have noticed this is fairly slow.I'm
thinking this kind of thing should be done on the client side - would
that be correct?
If so, how do I do this?
Also, is there a reference out there which shows all the available
client side events these asp (web form) controls have and how to
implement them?
I'm assuming you would code these using Javascript. Are there any
alternatives or is that the standard? Should VBScript be left alone as
it seems to me it's being fazed out now that asp.net can use native VB
on the server side? Or is that a mute point as my understanding is
client side and server side are two seperate entities?
So many questions!
Thanks for any replies.
Regards,
Mong
I have a webform with various asp controls on it such as textboxes and
dropdownlists. I'm fairly new to asp.net coming from VB6 and am
wondering when it's best to use client side events and when it's best
to use server side events.
For example, if a textbox is to contain a date I want to validate the
date when that textbox loses the focus. If the date is not valid I
make visible a label next to the textbox telling the user it's
invalid. At the moment I'm doing this in the server side TextChanged
event for the textbox and have noticed this is fairly slow.I'm
thinking this kind of thing should be done on the client side - would
that be correct?
If so, how do I do this?
Also, is there a reference out there which shows all the available
client side events these asp (web form) controls have and how to
implement them?
I'm assuming you would code these using Javascript. Are there any
alternatives or is that the standard? Should VBScript be left alone as
it seems to me it's being fazed out now that asp.net can use native VB
on the server side? Or is that a mute point as my understanding is
client side and server side are two seperate entities?
So many questions!
Thanks for any replies.
Regards,
Mong