473,508 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RequiredFieldValidator and Validation Summary not working

http://www.drumpub.com/test.aspx

Above is a link to a stripped down test page and the source code is also on
the page. Would someone mind spot checking this code? I've used this
method a few times before and have never had a problems but for some reason,
this sample refuses to work. I'm sure it something I've missed in my code
but I cannot find it.

The form is "supposed" to require all fields to be provided and any that are
not, will be displayed in a summary above the form in a
<asp:validationsummary> control and an a "*" will appear beside the
offending field. But as you can see, the form ignores the controls and
always displays the asterisks.

What gives?

TIA!

-Shane


Nov 18 '05 #1
2 1610
Nevermmind. As I thought, it was something dumb. I forgot runat="server"
in the RequiredFieldValidators.

D'OH!!
"D. Shane Fowlkes" <sh**********@h-o-t-m-a-i-l.com> wrote in message
news:OC****************@tk2msftngp13.phx.gbl...
http://www.drumpub.com/test.aspx

Above is a link to a stripped down test page and the source code is also on the page. Would someone mind spot checking this code? I've used this
method a few times before and have never had a problems but for some reason, this sample refuses to work. I'm sure it something I've missed in my code
but I cannot find it.

The form is "supposed" to require all fields to be provided and any that are not, will be displayed in a summary above the form in a
<asp:validationsummary> control and an a "*" will appear beside the
offending field. But as you can see, the form ignores the controls and
always displays the asterisks.

What gives?

TIA!

-Shane

Nov 18 '05 #2
Hi, D. Shane Fowlkes,

I don't know what is wrong, but the script for the client-side validation
doesn't get included in the page source-code.

You may try running aspnet_regiis.exe with the switch -c.

Hope this helps
Martin
"D. Shane Fowlkes" <sh**********@h-o-t-m-a-i-l.com> wrote in message
news:OC**************@tk2msftngp13.phx.gbl...
http://www.drumpub.com/test.aspx

Above is a link to a stripped down test page and the source code is also on the page. Would someone mind spot checking this code? I've used this
method a few times before and have never had a problems but for some reason, this sample refuses to work. I'm sure it something I've missed in my code
but I cannot find it.

The form is "supposed" to require all fields to be provided and any that are not, will be displayed in a summary above the form in a
<asp:validationsummary> control and an a "*" will appear beside the
offending field. But as you can see, the form ignores the controls and
always displays the asterisks.

What gives?

TIA!

-Shane

Nov 18 '05 #3

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

Similar topics

6
2133
by: BK | last post by:
I'm having a really strange problem with and HtmlSelect server control (listbox) and a RequiredFieldValidator that I am trying to use to make sure that someone has items in the listbox. The way...
7
8923
by: Ed West | last post by:
Hello, I have a simple form with some input boxes. After validation if one fails, then I would like to at the top of the page say something like "The following fields in red are required" and...
10
1269
by: BK | last post by:
I'm having a really strange problem with and HtmlSelect server control (listbox) and a RequiredFieldValidator that I am trying to use to make sure that someone has items in the listbox. The way...
6
297
by: BK | last post by:
I'm having a really strange problem with and HtmlSelect server control (listbox) and a RequiredFieldValidator that I am trying to use to make sure that someone has items in the listbox. The way...
0
7225
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
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7385
jinu1996
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...
1
7046
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...
0
7498
tracyyun
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...
0
4707
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...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.