opening new window

J

JohnE

Hello. I am working on having a commandfield link on a gridview open another
window but in a more smaller regulated style (specified height, width,
sizable, etc). An example is the window that opens up here to enter the new
question/reply in. I seek help on how this is accomplished.
Thanks.
John
 
A

Abdul Sami

You can bind a javascript function to commandField link on rowDataBound
event. Inside javascript you can use this script
window.open ("newpage.aspx",
"mywindow","menubar=0,resizable=1,width=450,height=250");
 
J

JohnE

Thanks to the both of you. Each comment gave me more ideas to use for this
and else where.
John
 
J

JohnE

Mark Rae said:
[please don't top-post]
Thanks to the both of you. Each comment gave me more ideas to use for
this
and else where.

Bear in mind that, whereas the window.open method will probably work OK on
an internal intranet site, it is liable to cause you huge problems on a
public Internet site due to popup blockers, etc...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

.

I realized that just after I sent the email back. I thought back to the
SSRS project and I used something similar there and it did not work. I've
been googling some more and found a possible way of opening a new window.

Do have another question tho. I have a master page that has a row of
linkbuttons on it. These linkbuttons open up the different applications that
are being developed. The webapps are using a nested master page inheriting
from the master page, including the css. Is there a way to not show the row
of linkbuttons when the webapps are opened up?
.... John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top