Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2007, 12:10 PM
Authorized User
 
Join Date: Jun 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default starting a new form

Hi

I'm trying to use visual basic code:

dim myinstancepage = new myWebPage
myinstancepage.show()

I cant find myinstance.show()
what am I doing wrong?

Thanks in advance
 
Old September 10th, 2007, 04:12 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Well, I think you are trying to follow the approach of desktop application here with the webpage, I am afraid it won't be possible. Please let us know exactly what do you wish to achieve, so that we can assist you in a better way.

Regards
Mike
===================================
 To the world you might be one person,
 but for someone you may be the whole world.
===================================
^^Though the above is non-technical, but there is no harm thinking emotionally.
 
Old September 10th, 2007, 12:25 PM
Authorized User
 
Join Date: Jun 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have a base form. (or base Web Page)

click on a button in base form (or Web Page)

The second form (or Web Page), pops up. (the second web page is initialized in the button using a second web page class)

I hope this is clear as I'm using cross language expressions.

Please excuse.
 
Old September 10th, 2007, 01:16 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

O.o

I think you are making this more difficult then it needs to be or you are coming from a strictly Windows based dev environment.

In any event clicking the button isn't going to "Initialize" the second page, not in the manner you are thinking anyway. What is going to happen is, you are going to click a button and that that button is going to make an HTTP request to the webserver that will, in turn, initialize and serve the page.

So, in all reality, this is all you need on your "Base" webpage:

<a href="./secondPage.aspx">Open second page</a>

hth

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========
 
Old September 11th, 2007, 09:44 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Further to parsons's point, you would also like to look at javascript methods like window.open() which would open a new page in a pop up window. (resembles to new form opening in desktop applications)

Regards
Mike





Similar Threads
Thread Thread Starter Forum Replies Last Post
Just starting... lozbritt9 C++ Programming 1 March 10th, 2006 12:54 PM
starting with SQL, chipset Pro VB Databases 1 September 12th, 2005 05:46 AM
Starting COM+ Applications cyad VB Components 5 September 2nd, 2004 06:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.