Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: AJAX UpdatePanel

  1. #1
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default AJAX UpdatePanel

    I'm trying to use an update panel on a page. I've created a new page, inherited PageBase, and put some text boxes and a button in an updatepanel. Every time I click the button the page refreshes. It seems to me that there should be no refresh, just a change in the content of the updatepanel. Any ideas what is going on here?
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  2. #2
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    In order to get this to work with AsyncPostBack you have to include the following code in the page:

    Code:
    Public Overrides ReadOnly Property RequireScriptManager() As Boolean
    	Get
    		Return True
    	End Get
    End Property
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  3. #3
    ajwaka is offline Junior Member
    Join Date
    Nov 2006
    Posts
    23

    Default

    Great! Worked great. Here it is in C#

    Code:
    public override bool RequireScriptManager
    {
          get { return true; }
    }