-
September 9th, 2010, 09:12 AM
#1
Contact form for SharePoint
I just found a code to build a contact form:
http://www.java2s.com/Code/ASP/Valid...iladdressC.htm
This part works fine for me, but now I did add an RequiredFieldValidator.#
Here's the code e.g. txtEmailAddress:
RequiredFieldValidator FieldEmailValidieren = new RequiredFieldValidator();
FieldEmailValidieren.ID = "_FieldEmailValidieren";
FieldEmailValidieren.ControlToValidate = txtEmailAddress.ID;
FieldEmailValidieren.Text = "<br>The E-Mail you have entered is not valid!";
FieldEmailValidieren.ErrorMessage = "Field 'Email' is empty";
FieldEmailValidieren.Display = ValidatorDisplay.Static;
Controls.Add(FieldEmailValidieren);
This works fine for me, too, but the problem is that I need an RegularExpressionValidator.
Can somebody help me herewith?
fnatichohn
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|