Solved

ASP.NET...  new form??

Posted on 2004-04-26
1
235 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now