RequiredFieldValidator - on-the-fly changes

RequiredFieldValidator - on-the-fly changes

Post by Peter Blu » Sun, 15 Feb 2004 03:54:28

I'm trying to envision your web form. Why would you be letting the user
click to submit without validating then validate on the next stage? I figure
that you have a multi-panel wizard where you hide fields. Regardless, it may
help to describe your web form in more detail.

Consider these tools:
1. A button has a CausesValidation property. Set it to false when you don't
want that button to fire the validators. The validators will still fire as
fields are edited unless you set EnableClientScript to false on each.
2. Certainly in your button's Click event handler, you can change the state
of a validator from disabled to enabled.
3. You may have a form that requires two separate groups of validation. For
example, with a wizard, you show separate panels between post backs. You
only want one of those panels to be validated at a time. This requires a
concept called "Validation groups" which is due in ASP.NET 2.0. Its already
available in my product, "Professional Validation And More"
( )
4. You may have some other rule that indicates a validator should be
disabled, such as the textbox its validating is disabled or invisible. If
you want client-side validation to automatically activate when the textbox
becomes enabled/visible, all validators within Professional Validation And
More include the Enabler property to detect conditions that enable the

--- Peter Blum
Creator of "Professional Validation And More" at

with C#). How can I enable the RequiredFieldValidator when I click a button
(e.g., in its event handler). I don't wan't to use validation until just
before I'm ready to leave the form. At present, my
RequiredFieldValidator.Enabled=true code requires that I click the exit
button twice before this enable takes effect. That's one too many times.

1. [Q] Macro to change message format on-the-fly and print?

2. change filename generated by reporting services on-the-fly


how can I change name of a file generated by reporting services
requested via webrequest. I have reporting project published via IIS
and currently it generates files by requests like: %2fSubReports%2REP_TYPE&rs:Command=Render&rs:Format=PDF

where MyReports is a virtual directory, SubReports - directory,
containing reports specifications (.rs files) and REP_TYPE - one of
these specifications (there is file
These requests allow client to save PDF files named RES_TYPE.PDF

What I want is to be able to save PDF file generated by
under name REP_TYPE_yyyy-MM-dd.pdf (yyyy-MM-dd - some date).

What is the easiest way to accomplish such a task?
Thank you in advance.

PS we are running MS SQL 2000 SP4 and reporting services for MS SQL
2000 SP 1.

3. Updating header on-the-fly to reflect change in section heading

4. Conditional Formatting: Change .BackColor on-the-fly?

5. Changing credentials on-the-fly

6. Changing MS Login ID on-the-fly?

7. Changing size of Boot Camp partition on-the-fly

8. [FMX] Changing swf or projector dimension on-the-fly

9. how to change dialog title on-the-fly

10. Changing a theme, just for the current user, on-the-fly??

11. changing python script on-the-fly for ActiveX/COM object (win32com)

12. How to force SplitContainer's contents to change 'on-the-fly' during resizing

13. Change date on-the-fly

14. How to change sorting method 'on-the-fly'

15. Changing size of Boot Camp partition on-the-fly (Summary)