Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesValidation fo values in Settings.ascx controlValidation fo values in Settings.ascx control
Previous
 
Next
New Post
1/6/2010 6:28 PM
 

 Does anyone have any  (successful) experience providing validation on input values in Settings.ascx controls? We cannot get the validators to fire via the Update link, and we have also tried to paste an alert after our validation method fails, and it just returns you to the control, not to the settings.ascx. No message is shown and nothng gets saved.

 

 

 
New Post
1/6/2010 8:39 PM
Accepted Answer 
I have a textbox on my settings [the template I use puts it there] and just added a standard ASP RequiredFieldValidator to the page, and assigned it to that text box and when I click update it shows the validation error and does not post back.

What version of DNN?
When you mouse over the "Update" link, is it WebForm_DoPostBackWithOptions(...)?
I'd suggest getting FireFox and FireBug [I love firebug] and adding breaks into your validation function and going step by step. Has helped me a few times when it returned true and wasn't supposed to.

The simplest test would be to set it to false regardless and see what happens. I've had instances where I screwed something up [just right] so there were no errors, but it never ran the function.

Without more [not that I can think of anything more to give me] That's all I have. Maybe try a standard textbox and the standard requiredfieldvalidator and see if that works?
 
New Post
1/6/2010 8:56 PM
 

I have not had any problems getting validation controls to work when used on Settings.ascx controls. The only thing that I can think of off hand is that since the cmdUpdate link button in ModuleSettings.ascx (into which your custom Settings.ascx control is loaded) does not assign a ValidationGroup, your own validators must not either.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesValidation fo values in Settings.ascx controlValidation fo values in Settings.ascx control


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out