473,383 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to load another aspx page within a VB subroutine?

What code do I need within VB to load another aspx page within the browser ?
Sep 30 '06 #1
3 1718
server.execute
"Oscar" <ok*@xs4all.nlwrote in message news:OH**************@TK2MSFTNGP05.phx.gbl...
What code do I need within VB to load another aspx page within the browser ?


Sep 30 '06 #2
Hi Jon,

in case I use Server.Execute("page2.aspx"), the browser loads page2 within
page1. So I see the content of both page 1 and page 2 in one window. I've
never seen such a messed window. I'd expected that page 1 would disappear
and only page 2 would be shown in the IE window. How can I solve this?

regards,
Oscar

Server.Execute("menuwrn.aspx")

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comschreef in bericht
news:Oh**************@TK2MSFTNGP06.phx.gbl...
server.execute
"Oscar" <ok*@xs4all.nlwrote in message
news:OH**************@TK2MSFTNGP05.phx.gbl...
>What code do I need within VB to load another aspx page within the
browser ?



Sep 30 '06 #3
Use Server.Transfer.
or use Response.Redirect.

Here's more info:
http://SteveOrr.net/faq/TransferRedirect.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Oscar" <ok*@xs4all.nlwrote in message
news:OG**************@TK2MSFTNGP03.phx.gbl...
Hi Jon,

in case I use Server.Execute("page2.aspx"), the browser loads page2 within
page1. So I see the content of both page 1 and page 2 in one window. I've
never seen such a messed window. I'd expected that page 1 would disappear
and only page 2 would be shown in the IE window. How can I solve this?

regards,
Oscar

Server.Execute("menuwrn.aspx")

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comschreef in bericht
news:Oh**************@TK2MSFTNGP06.phx.gbl...
>server.execute
"Oscar" <ok*@xs4all.nlwrote in message
news:OH**************@TK2MSFTNGP05.phx.gbl...
>>What code do I need within VB to load another aspx page within the
browser ?




Oct 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: keefah | last post by:
Hi, I can't seem to get past this problem, though I've tried multiple examples off the web. I've registered integrated Crystal (VS.NET 2003 Pro). I've made sure the assemblies are all there. I've...
5
by: Earl Teigrob | last post by:
I am creating an application where I would like to give web designers the ablity to create a static html page and dyanamically load it into my application(exactly like loading a user control into a...
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
10
by: GeekBoy | last post by:
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's...
6
by: dhnriverside | last post by:
Hi peeps Ok, I've got a web application running (lets call it MyApp, so its namespace is MyApp). I've created a subdirectory within this application called "secure", and made than an Application...
1
by: Loane Sharp | last post by:
Hi there I have a Windows Forms application that contacts the server and retrieves particular files, if they exist. To the best of my knowledge, the .exe assembly is properly compiled, strongly...
6
by: sck10 | last post by:
Hello, I have applications that produce the following error when they have been open to long without activity. Is there any way to force a re-load of the page or go to another page if the page...
8
by: sneddo | last post by:
Ok I am trying to do the above, I have got a script that will restrict the length but it requires the user to enter the field and hit a key, before it will work. This would normaly be find, but...
9
by: SAL | last post by:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first startup but then is very fast after that. As I understand it from some posts in June, this is caused by the loading of the App...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.