Solved

ASP.NET...  new form??

Posted on 2004-04-26
1
236 Views
Last Modified: 2010-04-07
If I was developing a windows app I would have an event handler open a new form.

What is the equivalent of this in ASP.NET w/VB?

Thanks,
0
Comment
Question by:Weller0123
1 Comment
 
LVL 12

Accepted Solution

by:
dfiala13 earned 500 total points
ID: 10922515
You can't do it from server side code.  You need to do it from a client-side method call in javascript (or vbscript).

Here's an example of a javascript call that opens the specified page in a new window with the given width, with no menubar or toolbar.

            <script language="javascript">
<!--
            function openPage(sPage, iWidth){
            
                  var winWidth = iWidth;
                  var winHeight = screen.height - 100;
                  var winProps = "resizable=no, toolbar=no, scrollbars=yes, menubar=no, location=no, status=yes, top=0, left=0, width=" + winWidth + ", height=" + winHeight;

                  window.open(sPage,"_blank",winProps, true);
                  return true;
            }
//-->
            </script>
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question