Page view counter

PopupControlExtender - this._postbackSettings.async is null or not an object

Last post 06-03-2009 7:40 AM by Lostre. 32 replies.

Sort Posts:

  • PopupControlExtender - this._postbackSettings.async is null or not an object

    01-30-2007, 11:00 AM
    • Loading...
    • Ian1971
    • Joined on 04-28-2005, 12:34 PM
    • London
    • Posts 23
    • Points 14

    Hello.

    I am having some trouble with the PopupControlExtender. I have a Panel (panel 1) that contains some text and a button (button 1). I have another button (button 2) that I want to cause the panel to popup. I set the popupControlExtender TargetControlID as button 2 and the PopupControlID as the Panel.

    When I click button 2 the panel appears as expected but if I now click button 1 that is on the panel (i.e. causing a postback) I get a "this._postbackSettings.async is null or not an object"javascript error.

    Does anyone have any ideas that can help?

    Thanks!

    Ian

     

  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    01-30-2007, 5:52 PM
    • Loading...
    • David Anson
    • Joined on 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    • Points 8,710
    • AspNetTeam
    Try with a LinkButton for button 2 instead to see if that helps?

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    01-31-2007, 7:37 AM
    • Loading...
    • Ian1971
    • Joined on 04-28-2005, 12:34 PM
    • London
    • Posts 23
    • Points 14

    Interesting. A link button does indeed work.

    I just tried an image button and that doesn't work.

    Is this a known issue with the PopupControlExtender?

     
    Ideally I want to use an image button

     

    Thanks
    Ian

    Filed under:
  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    01-31-2007, 3:41 PM
    • Loading...
    • boebelb
    • Joined on 01-21-2006, 7:17 PM
    • Lawrenceville, GA
    • Posts 85
    • Points 371

    I am getting the same javascript error in a different circumstance.

    I have modal dialogs and will set the tabIndex so the "Accept" button is selected, and when the user types in to the textbox and presses the enter key, the Accept button click event will execute.  This "Accept" button is an <asp:Button> control.

    All was well until I moved to AJAX 1.0 from RC.  When I click the "Accept" button with the mouse it works fine.  If I press the enter key, I get the javascript error.

    Anyone have any suggestions? 

    Billy

     

     

  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    02-07-2007, 4:35 PM
    • Loading...
    • RobinBX
    • Joined on 11-28-2006, 2:42 PM
    • Posts 5
    • Points 20

    I've just get this error. But it's work with a image button when i set a Offset X of 10 but when i try with 15 or 20 the postback error appear.

    A simple solution to this is to put a simple <img> html tag with a runat=server attribute and it's work perfectly.

  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    02-07-2007, 4:38 PM
    • Loading...
    • RobinBX
    • Joined on 11-28-2006, 2:42 PM
    • Posts 5
    • Points 20

    I've  got this same error but it still work with a image button when i set a Offset X of 10 but it crash when i try with a value of 15 and 20.

    A simple solution to this is to use a simple <img> tag with a runat=server attribute. 

  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    02-07-2007, 4:43 PM
    • Loading...
    • RobinBX
    • Joined on 11-28-2006, 2:42 PM
    • Posts 5
    • Points 20
    Can someone explain me why set new coordonate to a imagebutton cause this error and not with others controls.
  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    02-28-2007, 9:23 PM
    • Loading...
    • xc_lw
    • Joined on 02-28-2007, 8:53 AM
    • Posts 5
    • Points 2

     I got this error,too.

    Why can't we use a <asp:Button> or a<asp:ImageButton> instead of the <asp:LinkButton> control in aPopupControlExtender for a asyncPostBack?

  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    03-28-2007, 4:23 PM
    • Loading...
    • mhil_cbtech
    • Joined on 06-06-2006, 1:55 PM
    • Posts 26
    • Points 82
    I'm getting the same error. Has anyone found a solution other than using a link button?
  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    03-28-2007, 5:47 PM
    • Loading...
    • David Anson
    • Joined on 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    • Points 8,710
    • AspNetTeam
    The problem relates to how ASP.NET AJAX tries to set up its state for an async postback. Try setting UseSubmitBehavior="false" on the Button in question and I believe the null deref goes away because of the change to how the button is processed.

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    03-29-2007, 7:55 AM
    • Loading...
    • boebelb
    • Joined on 01-21-2006, 7:17 PM
    • Lawrenceville, GA
    • Posts 85
    • Points 371

    I use a modal dialogs for my application.  All modal web forms use a special master page for the modal dialogs.  This master page has a script manager in it.

    Whenever a modal dialog has only one textbox on it, I get this error when pressing the enter key while the cursor is in focus of the text box.  It does not matter if the modal web form uses an update panel or not.  Adding a link button doesn't help.  Adding an additional text box solves the issue!  So in my master page for the modal dialogs, i added an additional <asp:TextBox> control and set the Style="position: absolute; visibility: hidden;" and no longer have the error message.

    I hope this workaround helps someone else who has struggled with this issue, as well as helps someone who is more familiar with the AJAX Framework to find a way to fix this issue.

     Billy

  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    03-29-2007, 8:02 AM
    • Loading...
    • boebelb
    • Joined on 01-21-2006, 7:17 PM
    • Lawrenceville, GA
    • Posts 85
    • Points 371
    David,
  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    03-29-2007, 8:06 AM
    • Loading...
    • boebelb
    • Joined on 01-21-2006, 7:17 PM
    • Lawrenceville, GA
    • Posts 85
    • Points 371

    David,

    The UseSubmitBehavior="false" setting did not solve my issue where there is one textbox (as well as other controls such as drop down lists and radio buttons) on a modal dialog, and the user presses the enter key while in the text box to cause a "Accept" button click.

    Billy

  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    03-29-2007, 4:17 PM
    • Loading...
    • David Anson
    • Joined on 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    • Points 8,710
    • AspNetTeam
    I believe that's because the browser is being "helpful" and trying to automatically submit the form for you. The fact that it goes away when you add another control sounds like a typical behavior when this is going on.

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: PopupControlExtender - this._postbackSettings.async is null or not an object

    04-30-2007, 8:35 AM
    • Loading...
    • ctafield
    • Joined on 12-15-2006, 10:58 AM
    • Lichfield, England
    • Posts 52
    • Points 85

    I've just experienced a similar problem although not involving PopupControls. This case it was just a text box with a LINK button. The text box had default focus, and the link button was the default button for the form. When I pressed return in the text box it gave the "...is null..." error message.

    My solution (incase anyone else experiences this) was to trap the onkeydown event and check if there was a carriage return key pressed. If there wasn't then return true, otherwise perform a manual postback (__doPostBack). Bit of a faff but its fixed my problems.

Page 1 of 3 (33 items) 1 2 3 Next >