Where Button1 is the id of the button when being clicked the parent.aspx page will be opened in fullscreen. you can change for sure parent.aspx into any other webform you want to open.
Thank u but its Its working when I clicked button 2nd time and It is possible to fullscreen webpage in same window also I want to close full screen mode on button click.
liora
Member
6 Points
18 Posts
Open an aspx page in full screen
May 07, 2007 01:28 PM|LINK
Hello
Is there any command to open the aspx page in full screen???
Liora
asp .net ... c# ... SQL
kaushalparik...
All-Star
26568 Points
3692 Posts
MVP
Re: Open an aspx page in full screen
May 07, 2007 02:02 PM|LINK
im not sure this would help or not ... i found this link
http://www.eggheadcafe.com/community/aspnet/17/10017895/how-to-display-a-website.aspx
[KaushaL] || BloG || Twitter
Don't forget to click "Mark as Answer" on the post that helped you.
Haissam
All-Star
37421 Points
5632 Posts
Re: Open an aspx page in full screen
May 07, 2007 02:26 PM|LINK
You can use javascript to open a window in fullscreen mode, on page_load event for example write the below code.
Button1.Attributes.Add("onclick","window.open('Parent.aspx','','fullscreen=yes')");
Where Button1 is the id of the button when being clicked the parent.aspx page will be opened in fullscreen. you can change for sure parent.aspx into any other webform you want to open.
HC
MCAD.NET
| Blog |
liora
Member
6 Points
18 Posts
Re: Open an aspx page in full screen
May 08, 2007 09:37 AM|LINK
Hi
Thanks for your replay.
Is there a command to open fullscreeen without click on any Button - I want the Index.aspx will open automateclly in fullscreen.
Is there a command in C# I can put on Page_Load Function???
Liora
Asp .net
Haissam
All-Star
37421 Points
5632 Posts
Re: Open an aspx page in full screen
May 08, 2007 11:38 AM|LINK
Try the below code in page_load event
Page.ClientScript.RegisterStartupScript(this.GetType(),"open","window.open('Index.aspx','','fullscreen=yes');",true);
HC
MCAD.NET
| Blog |
davidco
Member
2 Points
1 Post
Re: Open an aspx page in full screen
Aug 31, 2008 11:23 PM|LINK
when I run this code it blocked by the pop up block of IE
there is an other way?
and there is an option to open a page (html from asp) in full screen without see the IE title?
Atul Phadtar...
Member
2 Points
1 Post
Re: Open an aspx page in full screen
Dec 01, 2012 09:57 AM|LINK
Thank u but its Its working when I clicked button 2nd time and It is possible to fullscreen webpage in same window also I want to close full screen mode on button click.