Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

Rate It (1)

Last post 06-13-2008 7:05 AM by Flap. 11 replies.

Sort Posts:

  • Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    10-31-2006, 11:57 AM
    • Member
      25 point Member
    • rascanzaz
    • Member since 10-27-2006, 11:43 PM
    • Posts 5

    Ok, here is what I'm doing:

    I have a frameset with 3 frames (left,top,main), the main frame  uses a masterpage, in the aspx page inside the masterpage I have 3 textboxes, 3 required field validators , 3 validatorcalloutextender and a button, when I hit the aspx button, the 3 validatorcalloutextenders works fine, I pop-up a message box in the code-behind inside the button click event and when the page comes back from the post back I get the following error:

    Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'String' cannot be converted to type 'Function'.
    Parameter name: method

    At the webresource.axd, the debugger breaks into this function:

    function Sys$Component$endUpdate() {

    this._updating = false;

    if (!this._initialized) this.initialize();

    this.updated();

    }

     Obviously its a bug because its in the webresource.axd, I'm I wrong?

    Thanks for the help.

     

    RaScAnZaZ
  • Re: Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    11-01-2006, 11:29 AM
    • Member
      428 point Member
    • John.Doe
    • Member since 06-21-2006, 1:54 AM
    • Posts 175

    I got exactly the same issue and same exception. I got the CalloutExtender attached to a RequiredExpressionValidator which validates a TexBox which is in an UpdatePanel. Another TextBox in the same UpdatePanel has a PopupExtender with a calendar and if I e.g. switch the month, so that a postback occurs, it bombs out with the above described exception.

  • Re: Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    11-01-2006, 2:03 PM
    • Contributor
      4,482 point Contributor
    • jodywbcb
    • Member since 03-12-2003, 3:52 PM
    • West Seattle,WA
    • Posts 985

    In code behind - are you registering the script for the button through the SCM and not using the Page.ClientScript.Register..?  The new version requires scripts to be loaded into the SCM  see the migration doc for more info on how to do this as well as the documentation site for ajax

    -- jody
    My Blogs on .Net 2.0 and Ajax
    http://csk.wbcb.com
    http://ArtbyJody.com
  • Re: Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    11-01-2006, 2:59 PM
    • Member
      428 point Member
    • John.Doe
    • Member since 06-21-2006, 1:54 AM
    • Posts 175

    Well, I did not add any Javascript myself at all, these are just a few components from the newest Ajax Framework and the Toolkit thrown together.

  • Re: Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    11-01-2006, 3:05 PM
    • Member
      25 point Member
    • rascanzaz
    • Member since 10-27-2006, 11:43 PM
    • Posts 5
    jodywbcb:

    In code behind - are you registering the script for the button through the SCM and not using the Page.ClientScript.Register..?  The new version requires scripts to be loaded into the SCM  see the migration doc for more info on how to do this as well as the documentation site for ajax

    Just trying to use the validatorcalloutextender, theres no need to register a script to the SCM 

     

    RaScAnZaZ
  • Re: Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    11-01-2006, 3:44 PM
    • Member
      428 point Member
    • John.Doe
    • Member since 06-21-2006, 1:54 AM
    • Posts 175

    And it is easy to reproduce, just take a form like this:

        <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="AtlasScriptManager" runat="server" EnablePartialRendering="true" />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="TextBox1" runat="server" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
                    <ajaxToolkit:ValidatorCalloutExtender ID="RFV1Extender" runat="server" TargetControlID="RequiredFieldValidator1" />
                    <br />
                    <asp:TextBox ID="TextBox2" runat="server" />
                    <br />
                    <asp:Button ID="Button1" runat="server" Text="Button" />
                </ContentTemplate>
            </asp:UpdatePanel>    
        </div>
        </form>
    

    Start with debug, enter something in TextBox1 and press the button.

  • Re: Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    11-01-2006, 3:59 PM
    • Member
      25 point Member
    • rascanzaz
    • Member since 10-27-2006, 11:43 PM
    • Posts 5
    John.Doe , just put your button out of the Update panel, it works! , but theres an issue that has to be solve. That doesn't resolve my problem, hope it helps you!
    RaScAnZaZ
  • Re: Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    11-01-2006, 4:05 PM
    • Member
      428 point Member
    • John.Doe
    • Member since 06-21-2006, 1:54 AM
    • Posts 175

    That was just an example to reproduce the error Hmm, what good would a form like that do?

    The error occurs on any kind of postback, so e.g. a popup calendar on a month change, a postback from a TextBox, and so forth. If the solution is to not produce a postback inside an UpdatePanel, then you can get rid of the UpdatePanel, too.

  • Re: Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    11-01-2006, 6:44 PM
    • Member
      547 point Member
    • rbuckton
    • Member since 10-28-2002, 7:56 AM
    • Washington, DC
    • Posts 124

    Thanks for pointing this out I'll take a look at it tonight and see if I can't get this fixed for the next release.

    Ron A. Buckton
    Senior Consultant
    Microsoft
  • Re: Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    11-01-2006, 7:33 PM
    • Member
      428 point Member
    • John.Doe
    • Member since 06-21-2006, 1:54 AM
    • Posts 175
    Uh... next release... if you find a quick fix for the code in the toolkit, it would be great,  if you can point us to that one, too. I would really like to try to replace my ugly error icons with the extender.
  • Re: Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    11-21-2006, 9:37 AM
    • Member
      25 point Member
    • rascanzaz
    • Member since 10-27-2006, 11:43 PM
    • Posts 5
    Fixed in beta 2 Cool
    RaScAnZaZ
  • Re: Validatorcalloutextender BUG!!! Using Ajax beta 1 and "value add" CTP

    06-13-2008, 7:05 AM
    • Member
      32 point Member
    • Flap
    • Member since 10-13-2006, 12:06 PM
    • Posts 8

    Hi!

    I has the same problem. How i can resolve one?

    ASP.NET 2.0

Page 1 of 1 (12 items)