Hello,
I have an aspx.vb code with a function.
In this function I need to check if a variable is a valid email address.
Something like: ad*****@domain. extension
How can I do this?
Thanks,
Miguel 3 1760
On Mon, 09 May 2005 20:07:46 -0500, Scott Allen
<sc***@nospam.o detocode.com> wrote: Hi Miguel:
You can use a RegEx Validation control. Here is a walkthorugh to get started with: http://support.microsoft.com/default...b;en-us;316662
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 9 May 2005 23:29:02 +0000, "Shapper" <mdmoura*NOSPAM *@gmail.*DELETE 2SEND*com> wrote:
Hello,
I have an aspx.vb code with a function. In this function I need to check if a variable is a valid email address.
Something like: ad*****@domain. extension
How can I do this?
Thanks, Miguel
Then when you're ready to write the regex, I highly suggest using
regexlib.com, plenty to choose from depending on how particular you want
to be: http://regexlib.com/Search.aspx?k=email
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Hello,
I know the ASP.NET build in validation control to place in HTML code.
What I need is to check if variable myEmail has a valid email address.
I need to do this in my vb.net code in my aspx.vb code file.
Can someone send me an example of how to create this?
Thanks,
Miguel
"Craig Deelsnyder" <cdeelsny@no_sp am_4_meyahoo.co m> wrote in message
news:cdeelsny@n o_spam_4_meyaho o.com: On Mon, 09 May 2005 20:07:46 -0500, Scott Allen <sc***@nospam.o detocode.com> wrote:
Hi Miguel:
You can use a RegEx Validation control. Here is a walkthorugh to get started with: http://support.microsoft.com/default...b;en-us;316662
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 9 May 2005 23:29:02 +0000, "Shapper" <mdmoura*NOSPAM *@gmail.*DELETE 2SEND*com> wrote:
Hello,
I have an aspx.vb code with a function. In this function I need to check if a variable is a valid email address.
Something like: ad*****@domain. extension
How can I do this?
Thanks, Miguel
Then when you're ready to write the regex, I highly suggest using regexlib.com, plenty to choose from depending on how particular you want to be:
http://regexlib.com/Search.aspx?k=email
-- Craig Deelsnyder Microsoft MVP - ASP/ASP.NET This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: |
last post by:
If I need to check if a certain value does exist in a field, and return
either "yes" or "not" which query would be the most effestive?
|
by: Mike |
last post by:
I´ve got a number of SPAN elements named "mySpan1", "mySpan2", "mySpan3"
etc, and want to set their "style.display" to "inline".
This works (only needs to work on IE5.5+):
for (var x = 1; x < 20; x++) {
document.all('mySpan'+x).style.display = "inline";
}
But I don´t know how many SPAN elements there are, so I need to set x to a
|
by: Groups User |
last post by:
C allows type casting in which a variable is converted from one type
to another.
Does C (whatever standard) allow the type of a variable to change,
within a statement, avoiding the conversion? And if so, provide an
example of how its done.
Example:
int a=23;
int b=34;
|
by: Laphan |
last post by:
Hi all
In my functions I'm using a double-check all the time to trap if a value has
nothing in it and my question is do I need this double-check.
My check line is:
IF IsNull(xxx) OR LEN(xxx) = 0 THEN
blah blah
|
by: Richard Meister |
last post by:
Hi,
I'd like to define several constants and make sure that all of them are
smaller than a given other constant. I thought this could be done by a
simple macro. Something like this:
#define MAX 999
#define DEF_CHECKED_VAL( name, value) #if (value < MAX) \
#define name MAX \
| |
by: sanjaymeher |
last post by:
Hi,
Right now addDynamicMemory(char **ptr, int size) method can able to
handle if input ptr is intitialized to NULL or something. But how to
improve this method to handle uninitialized pointed even. Any Answer ??
Thanks,
Sanjay
|
by: Mark A. Sam |
last post by:
Hello,
I am using Visual Web Developer and decared a Public Variable in the Class
section. I assigned a value in the load section, and on a button I set it
up to increment, but it always delivers the same value, 1. When I increment
the variable from the button, shouldn't it hold the new value? I also
tried declaring the variable as a Friend, but it wasn't any more friendly.
;)
Partial Class test
|
by: Sourav |
last post by:
Suppose I have a code like this,
#include <stdio.h>
int *p;
void foo(int);
int main(void){
foo(3);
printf("%p %d\n",p,*p);
|
by: kang jia |
last post by:
hi
currently i am editing signup page, when user enter deupicated NRIC and click signup, they will go to do_signuppage and read the error message and then after 5 seconds, they will be redirected to signup page again, however, this time they go back, all the correct value will be remain. how should i achieve this.
my current code for singup.php is like this
<html>
<head>
<link rel="stylesheet" type="text/css" href="gallery.css" />
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |