Open a webform in a new window

I

Ivan Sammut

Hi,

I have a webform (Webform2) for data input which is called from another
webform (Webform1) by using the server.transport command and this works
fine. Now I would like to open Webform2 in a different window. Is it
possible to do this and also is it possible to remove all the taskbars from
the new popup window.

Thanks,
Ivan Sammut
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi Ivan,

Yes, it's possible but it has to be done in the client side, from
JavaScript, you can do something like this:

function ShowCalendar(sourceID)
{
window.open("showcalendar.aspx?id=" + sourceID , "calendar",
"height=180,width=300,scrollbars=no,toolbar=no");
}


Hope this help,
 
A

Aleksandar T.

Ivan Sammut said:
Hi,

I have a webform (Webform2) for data input which is called from another
webform (Webform1) by using the server.transport command and this works
fine. Now I would like to open Webform2 in a different window. Is it
possible to do this and also is it possible to remove all the taskbars from
the new popup window.

Thanks,
Ivan Sammut

You have to use javascrip window.open function. It also provides some
parameters that set appearance of the window. Opening new window from
ASP.NET is not posible for simple reason that code is running on the
IS.
Alex
 

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

Top