Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 430
  • Last Modified:

rookie problem using the updatepanel

hi EE,
I have a problem with an update panel as its my first time using one to update content via ajax.

Within this updatepanel I have a radio button that uses the autopostback = true attribute together with an onclick event.

My problem is that when clicking this radio button I get the following error.

webforms.pagerequestmanagerservererrorexception.  status 12019.

i have been looking at how the updatepanel works although i cant really see why this would fail.

I have created a standard button outside the updatepanel and clicking this button causes a post back as normal.  Moving this button inside the updatepanel, with no code behind logic the click on the buttons causes the same error as the radio button.

does anyone have experience with updatepanels to help me resolve this problem?

many thanks!
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="...Web.usercontrols.site.test" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <asp:Wizard ID="wBookingForm" runat="server" DisplaySideBar="False" ActiveStepIndex="0"
                            OnNextButtonClick="wBookingForm_NextButtonClick" OnPreviousButtonClick="wBookingForm_PreviousButtonClick">
                                <asp:WizardStep ID="CentreDetails" runat="server" StepType="Start">
                                    <p runat="server" id="NoOnline">
                                        <asp:RadioButton ID="rdoNo" runat="server" AutoPostBack="true" OnCheckedChanged="rdoNo_CheckedChanged" />
                                        No, I do not have an online account.</p>
server side code
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace ...Web.usercontrols.site
    public partial class test: System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
        protected void rdoNo_CheckedChanged(object sender, EventArgs e)
        protected void rdoYes_CheckedChanged(object sender, EventArgs e)
        protected void wBookingForm_NextButtonClick(object sender, EventArgs e)
        protected void wBookingForm_PreviousButtonClick(object sender, EventArgs e)

Open in new window

  • 2
1 Solution
jimbona27Author Commented:
arrghh cheers mate
jimbona27Author Commented:
10 out 10 for assuming I was using multiple ies

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now