Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Back button breaks things
Old 03-28-2007, 05:38 PM Back button breaks things
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
I have this code
Code:
startPath = "this\is\some\file\path\"
				Set objSFSO = CreateObject("Scripting.FileSystemObject")
				Set objSFolder = objSFSO.GetFolder(startPath)
If you go to the page it works fine. This is held within a page that is processing a form. If when you submit the form you get a back message, press the back button, then resubmit the page again it gives me a "path not found" error. Makes no sense since nothing from either page alters this path, and these 3 lines are in the page exactly as shown. i get the error on line "Set objSFolder = objSFSO.GetFolder(startPath)". This error will keep happening until you reopen the site in a new browser.

Anyone heard of this?

side note: The page should have error checking that tells you to use the back button, i think its a dumb idea anyway. This site is a major revision to an existing site that had it coded this way. if it were up to me i would have the page call itself, run error checking, and display the * or an image next to bad fields. I would recreate the whole page but tomarrow is my last day at this job so i'm looking for a quick fix. Start a new job monday

Last edited by The_Anomaly; 03-28-2007 at 05:39 PM..
The_Anomaly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-28-2007, 06:18 PM Re: Back button breaks things
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
What happens when you try Server.MapPath (Path)?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-29-2007, 09:55 AM Re: Back button breaks things
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
If i did this right
Code:
startPath = Server.MapPath ("\this\is\some\file\path\")
Then i still got the same error.
The_Anomaly is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Back button breaks things
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.32613 seconds with 12 queries