New problems occured by zooming!!

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
else
Newbie
Newbie
Posts: 17
Joined: Fri May 21, 2004 4:00 am
Location: Germany
Contact:

New problems occured by zooming!!

Post by else » Tue Jul 19, 2005 11:41 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jul 20, 2005 10:28 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

else
Newbie
Newbie
Posts: 17
Joined: Fri May 21, 2004 4:00 am
Location: Germany
Contact:

Post by else » Wed Jul 20, 2005 1:33 pm

Hi Narcis,
I'm not able to send you the test-project. There appear the error-message, that no sender exists! :(

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jul 20, 2005 1:35 pm

Hi else,

Could you please try to send it directly to me then?

Thanks in advance.
Last edited by Narcís on Wed Oct 04, 2006 11:32 am, edited 1 time in total.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

else
Newbie
Newbie
Posts: 17
Joined: Fri May 21, 2004 4:00 am
Location: Germany
Contact:

Post by else » Fri Jul 22, 2005 10:38 am

Hi Narcis,

Thank you for helping me! It works fine :D !

Best Regards,

else

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jul 22, 2005 11:31 am

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);
  }
 }
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply