By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.