Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

opening new window

0 views
Skip to first unread message

JohnE

unread,
Jan 4, 2010, 2:15:01 AM1/4/10
to
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

Abdul Sami

unread,
Jan 4, 2010, 6:21:02 AM1/4/10
to
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");

--
Abdul Sami

Mark Rae [MVP]

unread,
Jan 4, 2010, 6:21:42 AM1/4/10
to
"JohnE" <Jo...@discussions.microsoft.com> wrote in message
news:BE5EC47F-CE4B-40AD...@microsoft.com...

> I seek help on how this is accomplished.

http://www.google.co.uk/search?rlz=1C1CHMA_en-GBGB328GB328&aq=f&sourceid=chrome&ie=UTF-8&q=AJAX+modal+popup


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

JohnE

unread,
Jan 4, 2010, 10:25:01 AM1/4/10
to
Thanks to the both of you. Each comment gave me more ideas to use for this
and else where.
John

Mark Rae [MVP]

unread,
Jan 4, 2010, 11:02:58 AM1/4/10
to
"JohnE" <Jo...@discussions.microsoft.com> wrote in message
news:5FC1C264-4C37-4336...@microsoft.com...

[please don't top-post]

>> 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 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...

JohnE

unread,
Jan 4, 2010, 1:59:01 PM1/4/10
to

"Mark Rae [MVP]" wrote:

> .
>

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

0 new messages