473,394 Members | 1,751 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Validators inside a CreateUserWizard on a content page

I customized a createuserwizard, in the CreateUserWizardStep
I added custom fields like:

<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1"
runat="server">
<ContentTemplate>
<div>
<div>First Name</div>
<div>
<asp:TextBox ID="txtFirstName"
Width="148px"
MaxLength="50"
runat="server"></asp:TextBox>
<asp:RequiredFieldValidator
ID="FirstNameRequired"
ControlToValidate="txtFirstname"
runat="server"
ValidationGroup="CreateUser"
ErrorMessage="First name is a required
field."
SetFocusOnError="True"
ToolTip="First name is a required field"
Text="*"></asp:RequiredFieldValidator>
</div>
<div>
....

Above the wizard I added something like this:

<div><asp:ValidationSummary ID="ValidationSummary1"
runat="server" EnableClientScript="true" ValidationGroup="CreateUser" />
</div>

I've tried changing the ValidationGroup to the name of the UniqueID of the
wizard
and various other things, but when I submit the page empty, it posts back
and
doesn't give me any error messages, and I have EnableClientSideScript set to
true. (A few pages I read said to set the ValidationGroup to the wizard
id).

I've tried the ValidationSummary inside and out of the wizard.

Any ideas or suggestions?

Steven
Oct 28 '08 #1
1 3105
I found the answer, it was to just set the ValidationGroup to
my ID raw, without ClientID or UniqueID:
ValidationGroup="CreateUserWizardStep1" on the page itself.
Do it for the validators and the summary.
"Steven" <sedison@protronix_nospam_.comwrote in message
news:Oh**************@TK2MSFTNGP06.phx.gbl...
>I customized a createuserwizard, in the CreateUserWizardStep
I added custom fields like:

<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1"
runat="server">
<ContentTemplate>
<div>
<div>First Name</div>
<div>
<asp:TextBox ID="txtFirstName"
Width="148px"
MaxLength="50"
runat="server"></asp:TextBox>
<asp:RequiredFieldValidator
ID="FirstNameRequired"
ControlToValidate="txtFirstname"
runat="server"
ValidationGroup="CreateUser"
ErrorMessage="First name is a required
field."
SetFocusOnError="True"
ToolTip="First name is a required
field"
Text="*"></asp:RequiredFieldValidator>
</div>
<div>
...

Above the wizard I added something like this:

<div><asp:ValidationSummary ID="ValidationSummary1"
runat="server" EnableClientScript="true" ValidationGroup="CreateUser"
/>
</div>

I've tried changing the ValidationGroup to the name of the UniqueID of the
wizard
and various other things, but when I submit the page empty, it posts back
and
doesn't give me any error messages, and I have EnableClientSideScript set
to
true. (A few pages I read said to set the ValidationGroup to the wizard
id).

I've tried the ValidationSummary inside and out of the wizard.

Any ideas or suggestions?

Steven

Oct 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Christian H | last post by:
Based on the content in my database, I need to populate different form controls and validators, such as textbox, dropdownlist, requiredfieldvalidators , etc. Then I need to check if the form has...
0
by: Babbage | last post by:
a login page login.aspx from there you can go to createaccount.aspx Ive got a createuserwizard on that create account page. It includes the following properties continuedestinationpageurl...
2
by: Learner | last post by:
Hello, I have defined another textbox control in the CreateUserWizard control and this is how I am trying to get the value of it in the code behind page is below im myStep As...
0
by: Evert Wiesenekker | last post by:
I have a mail page with a send button containing three validators (2 required val. and 1 expression val.). The masterpage contains 3 imagebuttons. Now when I press enter the first time the...
0
by: Nehpets | last post by:
I'm trying to setup a web site that uses active directory for user authentication under asp.net 2.0. For testing, I have separately installed two virtual servers. The first is a domain...
0
by: Avi | last post by:
A CreateUserWizard contorl receives new user details, adds the user to the database, tries to send a confirmation mail message and stops with a "System.FormatException: The specified string is not...
4
by: Ben | last post by:
Hi, i have some problem to access from code-behind a label nested into a CreateWizard control. I use a html-table for align purpose only. I try to change the text property of the label with...
4
by: Madhur | last post by:
Hello All I am learning how to use ASP.NET Validators and would appreciate if someone could provide me with guidance. I have written very simple ASPX page below with a Dropdown list, a...
4
by: gurufordy | last post by:
Hello. Trying to use the ASP.net user functionality but it keeps failing on me. I have created a login and registration page for my site. When you fill in the registration form it should send a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.