web form

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2009
Posts: 22
Reputation: shine_jose has a little shameless behaviour in the past 
Solved Threads: 0
shine_jose shine_jose is offline Offline
Newbie Poster

web form

 
0
  #1
Jul 24th, 2009
How to open a web page in Maximized form in asp.net c# webapplication
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 449
Reputation: Ramesh S will become famous soon enough Ramesh S will become famous soon enough 
Solved Threads: 82
Ramesh S Ramesh S is offline Offline
Posting Pro in Training

Re: web form

 
0
  #2
Jul 24th, 2009
This is related to asp.net question.

You cannot maximize the browser window through either server side or client code. But there is a work around solution throuh which browser will fit in the whole screen.

Put the following code on page load event of your .aspx page.
  1. protected void Page_Load(object sender, EventArgs e)
  2. {
  3.  
  4. Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "maximizeScript", "top.window.moveTo(0,0); top.window.resizeTo(screen.availWidth,screen.availHeight);", true);
  5.  
  6. }
Last edited by Ramesh S; Jul 24th, 2009 at 6:45 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC