Re: validate email and checks blank as well



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









.



Relevant Pages

  • Re: How to validate a string with a Regular Expression?
    ... "Friso Wiskerke" schrieb: ... > I'm trying to find a way to validate a string variable in the code behind ... > with a regular expression. ... I know there are validator controls but these ...
    (microsoft.public.dotnet.languages.vb)
  • Re: regexp problems
    ... my procedure was just to validate an entry widget., ... %substitution "%S". ... your regular expression failed i.e. the expression does not cover ...
    (comp.lang.tcl)
  • Re: What do you need to have to be considered a Master at Perl?
    ... Write a regular expression to ... validate it and capture a usable phone number. ... regurgitated to a human for the human to use, I'd by inclined to not validate at all, present it to the human as is and let the human do whatever validation/interpretation may be needed. ... candidate has a grasp of basic regular expressions: programmers who are ...
    (comp.lang.perl.misc)
  • Re: validate email and checks blank as well
    ... I have all the controls formattted via HTML so they show on the page nice ... I've other controls which i use requirevalidator in the same column, ... validate and your done. ... I need to validate email address with regular expression control, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: packing things back to regular expression
    ... I want to do the reverse of reg-exp match. ... Are you trying to validate the data against the regular expression as ... and extract the string it was ...
    (comp.lang.python)

Loading