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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Validation controls do not work on even sample module.Validation controls do not work on even sample module.
Previous
 
Next
New Post
9/28/2006 4:29 PM
 
I'm probably all goofed up here, but I've been working on this custom module for a few days and now I'm testing it.  None of my validation controls are being triggered.  At first I spent a lot of time working on my code, but then I decided to go back and just create a new dotnetnuke module.  The default module framework that comes with the starter kit has a dnn:texteditor and it has a required field validation control which is set to validate the dnn:texteditor control.  It doesn't work.  What I mean is that when I don't enter anything in the content box, and I click the "Update" linkbutton (which is set to CausesValidation = true).  No validation error occurs and the form is submitted.  I'm using DNN 4.3.5 and I've verified that this even happens with a brand new fresh installation.

Anyone have any ideas or has anyone ran into this?

 
New Post
9/28/2006 8:21 PM
 
Just to close this issue out...  The problem was that I was using Firefox.  Charles Nurse helped me out on this one.  I will be using the Page.IsValid check for those clients that don't support client-side validation.  Wierd.  I thought FireFox supported the ASP.NET validation controls.
 
New Post
9/30/2006 5:30 AM
 
Hey kfayal:

Is this true?  I've used validation controls in 3.x previously and don't remember any issues with Firefox.  It would be a major issue if true, since the percentage of people using Firefox has been steadily growing.

Could someone verifty this?  That validation controls do not work in VS2K5?  (And I should add a question here.  Are you using VS2K5?  Or VS2K3?)

Thanks for any clarification kfayal...
 
New Post
9/30/2006 12:52 PM
 
Yes, it's true.  I was developing with Firefox and when I tested the CLIENT-SIDE validation with the validation controls it didn't work.  Then I did this with Explorer and the validation controls worked.  According to Charles Nurse, it's not that firefox doesn't support the client side validation, it's just that ASP.NET doesn't think it does and it doesn't send the appropriate code to the browser. 

To solve my problem, on the click event of the link button that I'm using, I simply added to the top of the Sub:

If Me.Page.IsValid = False Then
    Exit Sub
End If

That made the validation controls display the proper error message, although it took a round trip to the server.  I have been getting lazy as of late and I haven't been doing this.  It SHOULD be done because not all browsers can support the client side validation.  Charles very kindly pointed that out to me as well.

Hope this helps.  I agree that Microsoft should fix ASP.NET to properly send the information to Firefox, but this just forces me to do the RIGHT thing and let the validation controls do their job at validation on both sides.

Ken
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Validation controls do not work on even sample module.Validation controls do not work on even sample module.


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