473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Opening New Windows

rePost:

I am using C# to develop my ASP.Net applications. I am trying to figure out
how to open new window with specific attributes such as size and window
components to show. I have not seen any examples in the documentation on how
to do this. Can someone please help?

revision:
Can this be done with C# and not JavaScript?
Nov 15 '05 #1
3 1007
Jeremy Ames <yo******@here.com> wrote:
I am using C# to develop my ASP.Net applications. I am trying to figure out
how to open new window with specific attributes such as size and window
components to show. I have not seen any examples in the documentation on how
to do this. Can someone please help?

revision:
Can this be done with C# and not JavaScript?


Think about it from the browser's point of view - the browser won't run
any of your C# code. Basically, if you can't produce a static set of
HTML files which do what you want (but don't give any dynamic values,
of course), you won't be able to do it from ASP.NET.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #2
Jeremy Ames <yo******@here.com> wrote:
I am using C# to develop my ASP.Net applications. I am trying to figure out
how to open new window with specific attributes such as size and window
components to show. I have not seen any examples in the documentation on how
to do this. Can someone please help?

revision:
Can this be done with C# and not JavaScript?


Think about it from the browser's point of view - the browser won't run
any of your C# code. Basically, if you can't produce a static set of
HTML files which do what you want (but don't give any dynamic values,
of course), you won't be able to do it from ASP.NET.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #3
Jeremy,
You can do it with C# but essentially you would be using C# under the
ASP.NET Page class to write out the script that the browser understands.
For example , "showModalDialog" is a script method that is understood by the
browsers Javascript parser, but you would only be using C# to write this out
to the browser using say, the Page.RegisterClientcriptBlock method.
Peter

"Jeremy Ames" <yo******@here.com> wrote in message
news:uR**************@TK2MSFTNGP12.phx.gbl...
rePost:

I am using C# to develop my ASP.Net applications. I am trying to figure out how to open new window with specific attributes such as size and window
components to show. I have not seen any examples in the documentation on how to do this. Can someone please help?

revision:
Can this be done with C# and not JavaScript?

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
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"...
1
by: Eric Cadwell | last post by:
We're running Load Runner to test a large 1.0 based WinForms application. I'm getting the following exception when opening and closing a form 400 - 450 times. The form contains several controls and...
1
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....
14
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...
9
compman9902
by: compman9902 | last post by:
Hello, and thank toy for reading this post. Thus far, this website has helped me a lot, (I have finally finished my encryptor: "site removed by moderator", go to the downloads link) and I will...
3
by: lopedon | last post by:
I've got a performance issue in Access 2000 running on Windows 2000. Opening a table local to the MDB takes about 1-2 seconds normally. If I log out of the windows profile that is normally used on...
0
by: Jeremy Noring | last post by:
Hi, I have an application that loads various settings from the app.exe.config file. This has worked very well on w2k, XP, and Vista. However, recently I've been troubleshooting an issue on...
3
by: Luke Davis | last post by:
I'm looking for an effective way to open and close TCP ports. Can I do this through Tcpclient? And I know this is a potential security risk, so what kind of permission must the person running...
15
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...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.