Is there a way, without using javascript, to open a new browser window at
set the window attributes? I want to set the size, turn off the status bar,
address bar, menu bar, and etc. Can someone please help? 4 11317
Hi jeremy,
What you want is not possible, the concept of "windows" exist only in the
client side of the application, in this side is javascript what you use.
Now, the question is why not use javascript?
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jeremy Ames" <yo******@here.com> wrote in message
news:OZ**************@TK2MSFTNGP10.phx.gbl... Is there a way, without using javascript, to open a new browser window at set the window attributes? I want to set the size, turn off the status
bar, address bar, menu bar, and etc. Can someone please help?
I would prefer to keep all of the code on the server side. I have found that
I can do so much more with the code on the server side ( more secure) than
on the client. I was wanting to test some user input against a database, and
if any problems were encountered, open a window for the specific type of
error.
Perhaps you can help there. I have this code being ran on the onclick event
of a button. Is it possible to run the server script for that control and
then run the client script?
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:un**************@tk2msftngp13.phx.gbl...
Hi jeremy,
What you want is not possible, the concept of "windows" exist only in the
client side of the application, in this side is javascript what you use.
Now, the question is why not use javascript?
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jeremy Ames" <yo******@here.com> wrote in message
news:OZ**************@TK2MSFTNGP10.phx.gbl... Is there a way, without using javascript, to open a new browser window at set the window attributes? I want to set the size, turn off the status
bar, address bar, menu bar, and etc. Can someone please help?
HI Jeremy,
As I said the window is a client side concept and is only from the client
side that you can create them, now in your escenario its possible to
generate the client code from the code behind, like this:
in the aspx file:
<Script>
var openwindow="no";
var windowURL = "";
function CheckIFNeededOpenWindow()
{
if ( openwindow == "yes" )
window.open( windowURL, .... )
}
</script>
<body onLoad = CheckIFNeededOpenWindow(); >
now in the .cs code :
void button_onclick(sender o , eventargs e)
{
//do the validation, if error open the new window
if ( error )
{
Literal lit = new Literal();
lit.Text= "<script> openwindow=\"yes\"; windowURL=\"" + URL_TO_OPEN +
"\";</script>" ;
Controls.Add( lit);
}
}
With the above code you can solve your problem, if you have any other doubt
just post back,
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jeremy Ames" <yo******@here.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... I would prefer to keep all of the code on the server side. I have found
that I can do so much more with the code on the server side ( more secure) than on the client. I was wanting to test some user input against a database,
and if any problems were encountered, open a window for the specific type of error.
Perhaps you can help there. I have this code being ran on the onclick
event of a button. Is it possible to run the server script for that control and then run the client script?
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:un**************@tk2msftngp13.phx.gbl... Hi jeremy,
What you want is not possible, the concept of "windows" exist only in the client side of the application, in this side is javascript what you use.
Now, the question is why not use javascript?
Cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation
"Jeremy Ames" <yo******@here.com> wrote in message news:OZ**************@TK2MSFTNGP10.phx.gbl... Is there a way, without using javascript, to open a new browser window
at set the window attributes? I want to set the size, turn off the status bar, address bar, menu bar, and etc. Can someone please help?
Wouldn't this script run every time the page is reprocessed?
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:ea**************@tk2msftngp13.phx.gbl...
HI Jeremy,
As I said the window is a client side concept and is only from the client
side that you can create them, now in your escenario its possible to
generate the client code from the code behind, like this:
in the aspx file:
<Script>
var openwindow="no";
var windowURL = "";
function CheckIFNeededOpenWindow()
{
if ( openwindow == "yes" )
window.open( windowURL, .... )
}
</script>
<body onLoad = CheckIFNeededOpenWindow(); >
now in the .cs code :
void button_onclick(sender o , eventargs e)
{
//do the validation, if error open the new window
if ( error )
{
Literal lit = new Literal();
lit.Text= "<script> openwindow=\"yes\"; windowURL=\"" + URL_TO_OPEN +
"\";</script>" ;
Controls.Add( lit);
}
}
With the above code you can solve your problem, if you have any other doubt
just post back,
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jeremy Ames" <yo******@here.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... I would prefer to keep all of the code on the server side. I have found
that I can do so much more with the code on the server side ( more secure) than on the client. I was wanting to test some user input against a database,
and if any problems were encountered, open a window for the specific type of error.
Perhaps you can help there. I have this code being ran on the onclick
event of a button. Is it possible to run the server script for that control and then run the client script?
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:un**************@tk2msftngp13.phx.gbl... Hi jeremy,
What you want is not possible, the concept of "windows" exist only in the client side of the application, in this side is javascript what you use.
Now, the question is why not use javascript?
Cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation
"Jeremy Ames" <yo******@here.com> wrote in message news:OZ**************@TK2MSFTNGP10.phx.gbl... Is there a way, without using javascript, to open a new browser window
at set the window attributes? I want to set the size, turn off the status bar, address bar, menu bar, and etc. Can someone please help?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Hari Prasad |
last post by:
Hi,
I have downloaded some image files by connecting to a URL and I am
trying open that image file using BrowserLauncher.
I am using windows xp and the default one to open image files is
windows...
|
by: Dena Leiter |
last post by:
I want to send people to a new page using a redirect but I want a new
window to open. Is this possible?
I've tried this:
<meta http-equiv="refresh"...
|
by: Alfons |
last post by:
Hello,
I have build a program that can do file transferring between a Windows
XP computer and a DOS computer via a serial port. The Windows program
I have build in C++ with Visual Studio 6.0....
|
by: D. Alvarado |
last post by:
Hello,
I am trying to open a window containing an image and I would like
the image to be flush against the window -- i.e. have no padding or
border. Can I make this happen with a single call to a...
|
by: sjp |
last post by:
I need to open new windows only for the purpose of viewing linked
images, maybe a dozen or so throughout the site. Using the
Target="blank" command is quick, easy and seems like the best way to...
|
by: aldrin |
last post by:
I'm trying to run this code under windows xp sp2 using codeblocks v1.0
compiler with great difficulty.There is no problem with running this
under KDevelop in linux. Any help would be greatly...
|
by: gangs |
last post by:
I need to know how can I open a file which is named using UTF-16
encoding in unicode. I am desperately trying to open the file using the
wofstream typedef, but even it takes the parameter as const...
|
by: anon |
last post by:
I have a page where the ASP script create a table of links
i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2
etc
What I would like to do is open an new window with this link without any...
|
by: John |
last post by:
Hi
I have a number of forms which open like this;
Dim frm1 As frmForm1 = New frmForm1
Dim frm2 As frmForm2 = New frmForm2
Dim frm3 As frmForm3 = New frmForm3
Dim frm4 As frmForm4 = New...
|
by: mohitpande |
last post by:
i am using windows 2003 server and iis 5.1 for hosting my web application
and windows xp as client OS
i ahv excel reports in my web application which are not opening in client machine
i hav...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |