RadXmlHttpPanel not working in Usercontrol

2 posts, 0 answers
  1. Sandeep
    Sandeep avatar
    8 posts
    Member since:
    Dec 2010

    Posted 30 Jan 2012 Link to this post

    Hi,
    I am using RadXMLHttpPanel control in my applicaiton to implement callback functonality.

    RadXMLHttpPanel control is defined in usercontrol as below:

    <

     

    telerik:RadXmlHttpPanel OnServiceRequest="RadXmlHttpPanel1_ServiceRequest" OnClientResponseEnded ="CallSuccess" OnClientResponseError="CallFailed" runat="server" ID="RadXmlHttpPanel1" EnableClientScriptEvaluation="true">

     

     

    <asp:HiddenField ID="hfdShowNotification" runat="server" EnableViewState="false" />

     

    </

     

    telerik:RadXmlHttpPanel>.

    The page in which this usrcontrol is being used has RadAjaxPane defined as below:

     

     

    <radA:RadAjaxPanel ID="pnlajax" runat="server">

     

     

     

     

     

    <asp:Button ID="btnAjax" runat="server" Text="Ajax" OnClick="btnAjax_Click" />

     

     

     

     

     

    </radA:RadAjaxPanel>

    RadXmlHttpPanel  works properly if there is no any ajax request but it throws invalid viewstate error when there is ajax request before
    RadXmlHttpPanel 's callback request. this happens only for first time after that it works properly.
     following steps  raised this problem:
    1) made ajax request (after loading page) by clicking on button defined in RadAjaxpane.
    2) Clicked on one button which call set_value() method of RadXmlHttpPanel  panel.

    Error details:
    Invalid viewstate.
     Client IP: 100.0.0.1
     Port: 3001
     User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; CWADS32; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E)
     ViewState: /wEWddCALx5bYxApSGk6MEAtXckYssscIAoznisYGAvn22fgLAtHShNsPAuKx89IBAtySgKME+dddoas2of+LhBH8VxAspilwM51wms=
     Referer:

    Its very urgent for me to resolve this problem, so please look in this as soon as possible.
    Thanks

     

  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 31 Jan 2012 Link to this post

    Hi Sandeep,

    Would you please provide more information about how to reproduce the problem? I created a sample application to try to recreate the issue on my machine, but didn't manage to. Everything is working as expected, and no errors are thrown. For reference the full source code of the project is attached to my reply.
    Could you please send us the full source code of your project (or a sample one that shows the same issue) so we can test it locally? You could also modify my code up to a point where the issue can be seen,  and send it back.

    Kind regards,
    Pero
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top