473,464 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Trouble loading Web forms

I must have done something that has suddenly caused me to be unable to load
a new web form when developing web apps. Simple example: WebForm1 has a
button which when clicked simply does a Response.Redirect("WebForm2"). When
I run the program and click the button I get "The page cannot be found"
message. WebForm2 is clearly there ... in the same folder that contains
WebForm1. I have developed a number of simple web apps over the past couple
of years and have never run into this problem; although I don't think I have
tried this since installing SP2.. IIS is installed and appears to be OK.
Using debug mode I was able to ascertain that Server.MapPath is correct ...
its value is "c:\inetpub\wwwroot\WebTest"; WebTest is the folder that
contains WebForm1 and WebForm2.

Any thoughts?

Thanks very much.
Jul 21 '05 #1
2 1012
You don't redirect to a file path, you redirect to an http path

Jeff
"fripper" <fr*****@insightbb.com> wrote in message
news:#O**************@TK2MSFTNGP15.phx.gbl...
I must have done something that has suddenly caused me to be unable to load a new web form when developing web apps. Simple example: WebForm1 has a
button which when clicked simply does a Response.Redirect("WebForm2"). When I run the program and click the button I get "The page cannot be found"
message. WebForm2 is clearly there ... in the same folder that contains
WebForm1. I have developed a number of simple web apps over the past couple of years and have never run into this problem; although I don't think I have tried this since installing SP2.. IIS is installed and appears to be OK.
Using debug mode I was able to ascertain that Server.MapPath is correct .... its value is "c:\inetpub\wwwroot\WebTest"; WebTest is the folder that
contains WebForm1 and WebForm2.

Any thoughts?

Thanks very much.

Jul 21 '05 #2
Include the full file name with extension.

Response.Redirect("WebForm2.aspx")

"fripper" <fr*****@insightbb.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I must have done something that has suddenly caused me to be unable to load
a new web form when developing web apps. Simple example: WebForm1 has a
button which when clicked simply does a Response.Redirect("WebForm2").
When I run the program and click the button I get "The page cannot be
found" message. WebForm2 is clearly there ... in the same folder that
contains WebForm1. I have developed a number of simple web apps over the
past couple of years and have never run into this problem; although I don't
think I have tried this since installing SP2.. IIS is installed and appears
to be OK. Using debug mode I was able to ascertain that Server.MapPath is
correct ... its value is "c:\inetpub\wwwroot\WebTest"; WebTest is the
folder that contains WebForm1 and WebForm2.

Any thoughts?

Thanks very much.

Jul 21 '05 #3

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

Similar topics

4
by: Matthew | last post by:
I am not the most talented programmer to grace the earth by a long shot. But I've got a gripe I need to air about the .NET implementaion of Visual Basic. I can live with alot of the major changes...
9
by: TD | last post by:
I am trying to add transactions to my code. The original code worked fine until I followed an example to setup transactions, now the code does strange things, but no error messages. Could...
4
by: Bill Stock | last post by:
The few times in the past that I've loaded unbound data, I've tended to cheat and use temp tables (not really unbound) or use code for small datasets. I'm currently involved in a project that...
0
by: RK | last post by:
Hello I am using Microsoft Development Environment 2003 Version 7.1.3088 & Framework 1.1.4322 and developing Windows Forms using Visual C#. It was working fine for quite a month. Currently...
8
by: Tamir Khason | last post by:
Following the code: Assembly myAssembly = Assembly.LoadFrom(FileName); foreach (Type myType in myAssembly.GetTypes()) {Do_whatever()}
2
by: Rob | last post by:
I was working on a project and everything was going fine, then all of a sudden the form set as my startup object stopped loading. I tried setting some others as the startup object, and some of my...
1
by: RAJ | last post by:
Hi, I am working on a source code written earlier in VB.net.While loading some forms(already created with some controls on it), I am getting the following error:...
6
by: A.Weinman | last post by:
Hello all, I have an application that has multiple forms, only 3 of which matter for this issue. There is a main form that starts invisible and does nothing more than start other forms and link...
3
by: -Lost | last post by:
Runtime dependency loading, worth the trouble? I've been researching methods of "dynamically" loading and unloading dependencies at runtime (trying my best to think of a nice solution of loading...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.