BUG!: updatepanel and validators

Last post 07-31-2007 3:42 PM by mikeworld. 3 replies.

Sort Posts:

  • BUG!: updatepanel and validators

    07-31-2007, 2:31 PM

    My validators stop working when placed in an updatepanel. I have also tried the validatorcallout...still no luck...they just dont validate..

    Then I found this link: http://blogs.msdn.com/mattgi/archive/2007/01/23/asp-net-ajax-validators.aspx

    which adviced to add the following in my web.config:
    tagMapping>
        <add tagType="System.Web.UI.WebControls.CompareValidator"           mappedTagType="Sample.Web.UI.Compatibility.CompareValidator, Validators, Version=1.0.0.0"/>
        <add tagType="System.Web.UI.WebControls.CustomValidator"            mappedTagType="Sample.Web.UI.Compatibility.CustomValidator, Validators, Version=1.0.0.0"/>
        <add tagType="System.Web.UI.WebControls.RangeValidator"             mappedTagType="Sample.Web.UI.Compatibility.RangeValidator, Validators, Version=1.0.0.0"/>
        <add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="Sample.Web.UI.Compatibility.RegularExpressionValidator, Validators, Version=1.0.0.0"/>
        <add tagType="System.Web.UI.WebControls.RequiredFieldValidator"     mappedTagType="Sample.Web.UI.Compatibility.RequiredFieldValidator, Validators, Version=1.0.0.0"/>
        <add tagType="System.Web.UI.WebControls.ValidationSummary"          mappedTagType="Sample.Web.UI.Compatibility.ValidationSummary, Validators, Version=1.0.0.0"/>
    </tagMapping>

    But then I get the error:
    Could not load file or assembly 'Validators, Version=1.0.0.0' or one of its dependencies. The system cannot find the file specified.

    I've read a few blogs but nothing works...any feedback from the moderators?

    Has this been fixed in asp.net 3.0?
     

    please mark answers as 'Answered' and post back solutions when you figure stuff out.

    join www.floxtar.com: the first community where YOU help make a difference! Support a good cause and it doesnt cost you a thing!
  • Re: BUG!: updatepanel and validators

    07-31-2007, 2:55 PM
    • Loading...
    • mikeworld
    • Joined on 08-13-2003, 12:52 PM
    • Posts 109

    Peter Smith:
    ... But then I get the error:
    Could not load file or assembly 'Validators, Version=1.0.0.0' or one of its dependencies. The system cannot find the file specified....

     Did you add the assembly reference to your web project?

    // TODO: learn by doing!
    .NET Wannabe!


    My ASP.NET host is:
    .NET Hosting
  • Re: BUG!: updatepanel and validators

    07-31-2007, 3:02 PM

     uhmm....where can I find that option and where is the assembly usually located? :$


    please mark answers as 'Answered' and post back solutions when you figure stuff out.

    join www.floxtar.com: the first community where YOU help make a difference! Support a good cause and it doesnt cost you a thing!
  • Re: BUG!: updatepanel and validators

    07-31-2007, 3:42 PM
    Answer
    • Loading...
    • mikeworld
    • Joined on 08-13-2003, 12:52 PM
    • Posts 109

    Check your "References" folder in your web project for "Validators" and if it's not there you'll want to add the dll "Validators" after downloading it from his blog.

     

    // TODO: learn by doing!
    .NET Wannabe!


    My ASP.NET host is:
    .NET Hosting
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter