niall29 Posted February 9, 2005 Posted February 9, 2005 Hi all Can any one tell me how I can force a web page created in ASP.NET to open maximized. Quote
kahlua001 Posted February 9, 2005 Posted February 9, 2005 Do you mean full screen? You can open a window and resize it to the screens width and height. But as far as i know, you cant maximze the browser. Quote
coldfusion244 Posted February 9, 2005 Posted February 9, 2005 I am not sure how to do it with html, but with javascript it's: <script language="Javascript"> <!-- window.moveTo(0,0) window.resizeTo(screen.width,screen.height) //--> </script> Quote -Sean
niall29 Posted February 9, 2005 Author Posted February 9, 2005 Thanks This looks like what I am after. Quote
ombun2 Posted February 14, 2005 Posted February 14, 2005 what i had to do once was how to call client-side code for server side events a function that i found somewhere goes with Public Shared Sub OpenNewWindow(ByVal Opener As System.Web.UI.WebControls.WebControl, ByVal PagePath As String) Dim Clientscript As String Dim Desc As String = "Details" Dim misc As String = "width=720,height=830,resizable,scrollbars=yes,menubar=yes" Clientscript = "window.open('" & PagePath & "', '" & Desc & "', '" & misc & "')" Opener.Attributes.Add("Onclick", Clientscript) End Sub you'd call this function by using something like OpenNewWindow(CType(DataGrid2.Items(temp).Cells(0).Controls(0), LinkButton), "webform2.aspx?data=34343") and what all that would do is to assign a client side code to that control so that it will be activated from the client-side the next time it was pressed...so referring to your question...read up on the window.open properites...a good page for this is http://64.233.161.104/search?q=cache:8bBcvavMZ8wJ:www.mozilla.org/docs/dom/domref/dom_window_ref76.html+window.open&hl=en Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.