Response.OutputStream
.
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">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnVisualizza_MG">
<
UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="divDisegnoModificaDisegno" LoadingPanelID="lp1" />
</UpdatedControls>
</telerik:AjaxSetting>
<AjaxSettings>
</telerik:RadAjaxManagerProxy >
protected
void btnVisualizza_MG_Click(object sender, EventArgs e)
{
divDisegnoModificaDisegno.Controls.Clear();
System.Web.UI.HtmlControls.
HtmlImage image = new System.Web.UI.HtmlControls.HtmlImage();
image.Src =
"DrawGeometriaSistema.aspx?dim_x=640&dim_y=609";
divDisegnoModificaDisegno.Controls.Add(image);
}
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?