how can I minimize web page in asp.net

  • Thread starter Thread starter Sukh
  • Start date Start date
S

Sukh

I want to minimize page programmatically in asp.net. following code is
working fine with winform. is there any way i can do it in asp.net

this.WindowState = System.Windows.Forms.FormWindowState.Minimized;


Can any one has any idea
Thanks
Sukh
 
Sukh,

Using the registerstartupscript. With what you can use a javascript (simple
to find with Google in all versions you want) that will placed at the end.
Be aware that the version in Net 2.0 is strange.

1.x version
http://msdn.microsoft.com/library/d...mwebuipageclassregisterstartupscripttopic.asp

In version 2.0 the 1.x version is obsolete.
http://msdn2.microsoft.com/en-us/library/asz8zsxy.aspx

There is no overloaded version that would give you the same behaviour as the
first. But you can just use Me.GetType() or this.GetType() as first
parameter to get the same as the simple one from the 1.x version. (You can
use it in the same way)

I hope this helps,

Cor
 
Thanks Chris and Cor

I am using RegisterStartupScript to openig a window(example page1), and
open window page1 is opeing a pdf file. here is the problem this pdf
always goes back. pdf is also open using RegisterStartupScript. and i
am facing the old page(page1) always on top. I hv to minimize the
page1. user always want to see pdf on top and do't want to close page1.
I tried other method like resize and moveto but client is not okay....
any way to workaround....
Thanks...
Sukh
 
Sukh,

Are you sure that you cannot just use a redirect to show the pdf page?

Cor
 
Cor,
I can open pdf page using respone.redirect...but in this case I will
lost previous page...As I mention I want both page open and pdf should
be on top of all pages..

Sukh.
 
Sukh,

What is wrong to make from your opening PDF and minimizing your page in one
script javascript sentence. It need only a semicolun to seperate them.

Cor
 
Back
Top