Solved

ASP.NET...  new form??

Posted on 2004-04-26
1
240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

729 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