Is it possible to display in full screen only? My project will be on a touchscreen for students to access. I need to remove the ability for them to minimize or exit out of the program. I have added this code to my Page_Load but it is in an infinite loop
loading. Any ideas?
I don't think what you are trying to achieve is possible. If it's a touch pad, there are many gestures to get rid of the current screen. May be a 'shake' will do. So I really don't think making fullscreen=yes for the popup page will help you.
It will get load infinitely because of the following line
'self.location'
You may have to do something in touch pad OS level. With ASP.NET, it's clearly impossible since ASP.NET is a server side technology.
The application will be on a touchscreen for all students to access for information. I need to disable or hide the exit button to prevent a student from accidently closing the application. Any ideas on how to do this. The current way I am trying is not working.
Thanks.
I need to disable or hide the exit button to prevent a student from accidently closing the application. Any ideas on how to do this. The current way I am trying is not working.
Hi,
This is better to be handled with OS level rather than in application level. You better speak with touchscreen guys. Because I honestly don't see a way to achieve this with ASP.NET or javascripts. Server side technologies are completely out of the context
since it's impossible to hanle such a situation in server side. And As far as I know, there is no client side technology to do such a thing.
gordon1221
Member
12 Points
117 Posts
Full Screen
May 07, 2012 12:37 PM|LINK
Is it possible to display in full screen only? My project will be on a touchscreen for students to access. I need to remove the ability for them to minimize or exit out of the program. I have added this code to my Page_Load but it is in an infinite loop loading. Any ideas?
protected void Page_Load(object sender, EventArgs e)
{
if (!this.ClientScript.IsStartupScriptRegistered("Open"))
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "open", "window.open(self.location,'','fullscreen=yes');", true);
}
}
Thanks
tusharrs
Contributor
3230 Points
668 Posts
Re: Full Screen
May 07, 2012 12:43 PM|LINK
if you want this only on once when page first time loads
then put in ispostback condition
if (!IsPostBack)
{
if (!this.ClientScript.IsStartupScriptRegistered("Open"))
{
Page.ClientScript.RegisterStartupScript(this.GetType(),"open","window.open(self.location,'','fullscreen=yes');",true);
}
}
( Mark as Answer if it helps you out )
View my Blog
gordon1221
Member
12 Points
117 Posts
Re: Full Screen
May 07, 2012 12:52 PM|LINK
I added the if (!IsPostBack) and it still loads multiple times.
if (!IsPostBack)
{
if (!this.ClientScript.IsStartupScriptRegistered("Open"))
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "open", "window.open(self.location,'','fullscreen=yes');", true);
}
}
Ruchira
All-Star
44303 Points
7185 Posts
MVP
Re: Full Screen
May 07, 2012 03:08 PM|LINK
Hello,
I don't think what you are trying to achieve is possible. If it's a touch pad, there are many gestures to get rid of the current screen. May be a 'shake' will do. So I really don't think making fullscreen=yes for the popup page will help you.
It will get load infinitely because of the following line
'self.location'
You may have to do something in touch pad OS level. With ASP.NET, it's clearly impossible since ASP.NET is a server side technology.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.tusharrs
Contributor
3230 Points
668 Posts
Re: Full Screen
May 07, 2012 03:09 PM|LINK
As every time the open() method opens a new browser window.
It will be a infinite loop
Can you give me more details what you want to achieve by using this code
( Mark as Answer if it helps you out )
View my Blog
gordon1221
Member
12 Points
117 Posts
Re: Full Screen
May 07, 2012 03:17 PM|LINK
The application will be on a touchscreen for all students to access for information. I need to disable or hide the exit button to prevent a student from accidently closing the application. Any ideas on how to do this. The current way I am trying is not working. Thanks.
Ruchira
All-Star
44303 Points
7185 Posts
MVP
Re: Full Screen
May 07, 2012 03:21 PM|LINK
Hi,
This is better to be handled with OS level rather than in application level. You better speak with touchscreen guys. Because I honestly don't see a way to achieve this with ASP.NET or javascripts. Server side technologies are completely out of the context since it's impossible to hanle such a situation in server side. And As far as I know, there is no client side technology to do such a thing.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.