?
Solved

ASP.NET...  new form??

Posted on 2004-04-26
1
Medium Priority
?
244 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Screencast - Getting to Know the Pipeline
Suggested Courses

750 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