Page 1 of 1
New problems occured by zooming!!
Posted: Tue Jul 19, 2005 11:41 am
by 8125571
Hi Narcis!
A webform with a TeeChart (Web) is called by another webform with the function "Server.Tranfer". When the user want to zoom on the chart, the previous webform is shown. Maybe the reason is, that the URL of the first page is still written in the adressbar.
Do you know this problem? I know, that's even possible to call a webform by the function "Response.Redirect" and it works. But we have to call webforms in this project with "Server.Tranfer".
Hope you can help me! Thanks!
Best regards!
else
Posted: Wed Jul 20, 2005 10:28 am
by narcis
Hi else,
Would you be so kind to send us an example we can run "as-is" to reproduce the problem here?
You can post your files at [url]news://
www.steema.net/steema.public.attachments[/url] newsgroup.
Posted: Wed Jul 20, 2005 1:33 pm
by 8125571
Hi Narcis,
I'm not able to send you the test-project. There appear the error-message, that no sender exists!
Posted: Wed Jul 20, 2005 1:35 pm
by narcis
Hi else,
Could you please try to send it directly to me then?
Thanks in advance.
Posted: Fri Jul 22, 2005 10:38 am
by 8125571
Hi Narcis,
Thank you for helping me! It works fine
!
Best Regards,
else
Posted: Fri Jul 22, 2005 11:31 am
by narcis
Hi else,
You're welcome! I'm glad to hear that.
I'm posting the solution we gave you so that other users can benefit from that in the future.
Your webform2 should look like this:
Code: Select all
public class WebForm2 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.ImageButton ImageButton1;
protected System.Web.UI.WebControls.Label Label1;
private static bool go=false;
private void Page_Load(object sender, System.EventArgs e)
{
if(go)
{
Server.Transfer("WebForm1.aspx", true);
}
// Hier Benutzercode zur Seiteninitialisierung einfügen
}
#region Vom Web Form-Designer generierter Code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: Dieser Aufruf ist für den ASP.NET Web Form-Designer erforderlich.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
private void InitializeComponent()
{
this.ImageButton1.Click += new System.Web.UI.ImageClickEventHandler(this.ImageButton1_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
go = true;
Server.Transfer("WebForm1.aspx",true);
}
}