473,396 Members | 1,972 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,396 software developers and data experts.

How do I Open / Close a window in either using a link or button Server Controls.

I am working on a project where in we have a requirement
in which we need to open a new window on click of a link
and also I should display a link in the new opened window
after the data is displayed which upon clicking must close
the window.

How do I do it in ASP.net? I want to use Server Controls
for either links or buttons.

Thanks!
Nov 18 '05 #1
3 1153
wh
Look at the 'target' property for the link. It allows you to specify what
window the link is to be opened in. I *think* you'll need to set it to
'new'.

Wayne.

"Srik" <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
I am working on a project where in we have a requirement
in which we need to open a new window on click of a link
and also I should display a link in the new opened window
after the data is displayed which upon clicking must close
the window.

How do I do it in ASP.net? I want to use Server Controls
for either links or buttons.

Thanks!

Nov 18 '05 #2
For opening it is fine and will work but what about the
closing of window. How do i do it?

Srik
-----Original Message-----
Look at the 'target' property for the link. It allows you to specify whatwindow the link is to be opened in. I *think* you'll need to set it to'new'.

Wayne.

"Srik" <an*******@discussions.microsoft.com> wrote in messagenews:06****************************@phx.gbl...
I am working on a project where in we have a requirement
in which we need to open a new window on click of a link
and also I should display a link in the new opened window after the data is displayed which upon clicking must close the window.

How do I do it in ASP.net? I want to use Server Controls
for either links or buttons.

Thanks!

.

Nov 18 '05 #3
javascript:window.close() will close the current window

alex
-----Original Message-----
For opening it is fine and will work but what about the
closing of window. How do i do it?

Srik
-----Original Message-----
Look at the 'target' property for the link. It allows you
to specify what
window the link is to be opened in. I *think* you'll
needto set it to
'new'.

Wayne.

"Srik" <an*******@discussions.microsoft.com> wrote in

message
news:06****************************@phx.gbl...
I am working on a project where in we have a requirement in which we need to open a new window on click of a link and also I should display a link in the new opened

window after the data is displayed which upon clicking mustclose the window.

How do I do it in ASP.net? I want to use Server Controls for either links or buttons.

Thanks!

.

.

Nov 18 '05 #4

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

Similar topics

3
by: Leonard | last post by:
I have a button on my web app, that opens a help html page. I use this code: HttpContext.Current.Response.Write("<script>") HttpContext.Current.Response.Write("window.open('" & sUrl & "','_new')")...
13
by: ldan | last post by:
Hi everybody, I would not consider myself an expert in javascript - but so far whatever I know, helped me reaching my goals. Recently I started to experience a lot of javascript errors related...
8
by: Dan | last post by:
hello all, is there a way to open a new window without javascript and a href=_blank? i need to connect a button click with some lines of code and then, a new window shall get opened. but i didn't...
1
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for...
3
by: RN Das | last post by:
Hi expert, I have a small web application in C# and ASP.Net and I want to open a file in notepad when clicked on a linked button. Here is hander code when clicked on the link button. It can open...
2
by: carlor | last post by:
Hi there, I have a form that contains a link button. When the user clicks the link button I need to enable a couple of other buttons on the page and open a new browser window giving it focus...
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
13
by: amymcdo3 | last post by:
Hi Everyone, I have a popup window that opens when clicking a link. The pop up window asks a question and supplies two buttons, Yes and No. The buttons are images and when the user clicks the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.