Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Services > Web Designing and Development

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-25-2008, 06:20 PM
new member
 
Join Date: Jul 2008
Posts: 6
Question Response Redirect not working

Hi

I'm an experienced developer, but a newbie web developer.

My Default.aspx.cs has a single line of code in it which is:

Response.Redirect( "~/DADSInfo_Introduction.aspx" );

This gives me the following error:

============================================
The resource cannot be found
Server Error in '/' Application
Requested URL: /DADSInfo_Introduction.aspx
============================================

I've tried without the '~/' but the error message is the same.

Anyone have any ideas what I am doing wrong?

BTW - the code works fine on my development machine.

Cheers
Steve
Reply With Quote
  #2 (permalink)  
Old 07-28-2008, 01:23 PM
new member
 
Join Date: Jul 2008
Posts: 6
Default

I thought of one difference between my dev setup and the deployed web site and that is that I was deploying built assemblies to the web site, whereas when I am running on my dev machine the .aspx.cs files are being compiled as and when they are needed.

So, I uploaded the .aspx.cs files to the web site, and..... no difference.

Does anyone have any ideas?

Thanks
Steve
Reply With Quote
  #3 (permalink)  
Old 07-28-2008, 02:04 PM
new member
 
Join Date: Jul 2008
Posts: 6
Default

Its sorted.

I changed the Response.Redirect to a Server.Transfer and the default page now correctly transfers to the correct page.

What is strange is that all the other Response.Redirects work fine.

Steve
Reply With Quote
  #4 (permalink)  
Old 07-28-2008, 02:25 PM
Senior Member
 
Join Date: Jan 2007
Posts: 948
Default

Glad you sorted it Steve, fraid i know nothin regarding MS asp coding. I guess not many on here do either. I do remember someone else who could fault find asp but can't remember who!
__________________
West Dorset Community
Reply With Quote
  #5 (permalink)  
Old 07-31-2008, 02:52 PM
new member
 
Join Date: Jul 2008
Posts: 6
Default

Quote:
Originally Posted by jon123 View Post
Glad you sorted it Steve, fraid i know nothin regarding MS asp coding. I guess not many on here do either. I do remember someone else who could fault find asp but can't remember who!
I think I can join the category of 'knowing nothing' about MS ASP, but i'll keep
trying
Reply With Quote
  #6 (permalink)  
Old 07-31-2008, 06:33 PM
Dan's Avatar
Dan Dan is offline
Got root?
 
Join Date: Aug 2007
Location: England, UK.
Posts: 756
Default

ASP is hard, I have given up on it
__________________
Webhosting.UK.com || cPanel VPS Hosting || Reseller Hosting || Support System || Billing System

Sales: 0808-262-0855
Support: 0800-612-8725
International: +44 191 303 8191
Reply With Quote
  #7 (permalink)  
Old 08-01-2008, 10:30 AM
new member
 
Join Date: Jul 2008
Posts: 6
Default

Quote:
Originally Posted by Dan View Post
ASP is hard, I have given up on it
Shows how much i know. I thought ASP was the only way to go!
What are the popular alternatives for the Windows platform?

Steve
Reply With Quote
  #8 (permalink)  
Old 08-01-2008, 01:05 PM
Senior Member
 
Join Date: Jan 2007
Posts: 948
Default

The most common languages are php and perl which also run on windows i believe. nothing wrong with asp though and was written specifically for the windows environment so I guess that would be the way to go imo
__________________
West Dorset Community
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:26 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum