CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Redirect with ASP - does'nt load style template? Path to images wrong

Print topic Send  topic

Author Message
Slopey

Posts: 33
Posted: 06/13/2007, 5:59 AM

Hi All,

I've got a page in a subdirectory which I'm using Redirect = "page.asp" in the OnClick server side event of a form button to navigate the user to another page in the root directory.

The odd thing is that if I set the ReturnPage property of the button, it works perfectly - but I can't use that property as I redirect the user based on the content of the form when they button is pressed (for some custom validation).

However, when I redirect the user to a page in the root directory using Redirect, the page loads but does'nt apply the template/style to it. Even wierder, images used by the style (ie next last previous in the grid navigator) have the wrong path when I mouse over them - the path contains the subdirectory I've just tried to redirect away from.

What am I missing with Redirect - do I need to explicity tell the page which directory it is in through code? Why does redirect seem to make the target page think it's in the subdirectory?

Cheers,
S
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.