Re: validate email and checks blank as well
- From: "Ganesh" <gsganesh@xxxxxxxxx>
- Date: Thu, 16 Aug 2007 20:03:38 +0100
Thanks, I'll follow the way if there is no way.
Still i'd prefer if anyone have answer for my question, one is my learning
purpose just want to know how to do this. Next thing defintly in future i'm
going to have more regular expression don't want to use both(require and
regular expression)
Thanks
"Mike" <Mike@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:O0p8bXD4HHA.5740@xxxxxxxxxxxxxxxxxxxxxxx
you can still user a required field validator, just format the HTML so
they appear as you want.
I don't see any sense in making extra work for something that can be done
in like 30 seconds - if that
right now I have a form with 4 textboxes and are all required and 2 i'm
using expression.
I have all the controls formattted via HTML so they show on the page nice
and neat.
"Ganesh" <gsganesh@xxxxxxxxx> wrote in message
news:ONDQ$TD4HHA.3600@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for your email
I've other controls which i use requirevalidator in the same column, my
email if i use both require and regulrexpression it will be aligned in
just further right. I thought if i can use expression itself it would be
good.
i'm not expect in regular expression, i think there must be a way to
validate
Thanks
Ganesh
"Mike" <Mike@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:ehjiPLD4HHA.2312@xxxxxxxxxxxxxxxxxxxxxxx
then use javascript. but why do that since you can use the required
field validator? Just drag and drop it to your page, pick your email
textbox to validate and your done.
Hell its there and it saves time, use, I don't see or understand why you
wouldn't in a case like this.
"Ganesh" <gsganesh@xxxxxxxxx> wrote in message
news:%23pBJmJD4HHA.4880@xxxxxxxxxxxxxxxxxxxxxxx
Hi There,
I need to validate email address with regular expression control, i
tried something like this
^+[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$
but i need to validate even if it is blank, it should say invalid
email, but don't want to use another requirefield validator
Thanks
Ganesh
.
- Follow-Ups:
- Re: validate email and checks blank as well
- From: Alexey Smirnov
- Re: validate email and checks blank as well
- References:
- validate email and checks blank as well
- From: Ganesh
- Re: validate email and checks blank as well
- From: Mike
- Re: validate email and checks blank as well
- From: Ganesh
- Re: validate email and checks blank as well
- From: Mike
- validate email and checks blank as well
- Prev by Date: Re: Regex problems
- Next by Date: Re: validate email and checks blank as well
- Previous by thread: Re: validate email and checks blank as well
- Next by thread: Re: validate email and checks blank as well
- Index(es):
Relevant Pages
|