RadAjaxManager and the aspx page not called...

3 posts, 0 answers
  1. Marco Miccini
    Marco Miccini avatar
    17 posts
    Member since:
    Aug 2009

    Posted 09 Jan 2010 Link to this post

    I've a DIV control with an HtmlImage control inside dinamically generated by setting the src to a  an aspx page producing a Bitmap as


    Each time I press the btnVisualizza_MG button the image must be updated. The button is enclosed in a RadAjaxManager as triggering control of the div. This is a brief extract of the code.




    telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">






            <telerik:AjaxSetting AjaxControlID="btnVisualizza_MG">













                    <telerik:AjaxUpdatedControl ControlID="divDisegnoModificaDisegno" LoadingPanelID="lp1" />  













    </telerik:RadAjaxManagerProxy >



    void btnVisualizza_MG_Click(object sender, EventArgs e)





    HtmlImage image = new System.Web.UI.HtmlControls.HtmlImage();


        image.Src =





    THE PROBLEM: the first time I press the btnVisualizza_MG button, the DrawGeometriaSistema.aspx page is called and the image is generated but the following times the image remains unchanged since the code, when reaching "image.Scr=..." instruction, does not call the DrawGeometriaSistema.aspx page.

    Why and how to solve this problem? 

  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 13 Jan 2010 Link to this post

    Hi Marco,

    Could you please confirm that the problematic page works as expected with ajax disable or if you ajaxify it with ASP:UpdatePanel instead of RadAjax?
    Additionally, it would be greate if you can send us a sample project illustrating the described issue for further debugging and investigation.

    Check it out and let me know how it goes.
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Marco Miccini
    Marco Miccini avatar
    17 posts
    Member since:
    Aug 2009

    Posted 13 Jan 2010 Link to this post

    Dear Iana,
    I've resolved creating a different image.scr each time the page is called by using in the url a fictious parameter containing a randon number.
    i.e. image.Src="DrawGeometriaSistema.aspx?dim_x=640&dim_y=609&unused_par="+rnd.Next();
    In this way the scr string is different each time is called and ... it works!
Back to Top