Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 21st, 2006, 08:58 AM
Authorized User
 
Join Date: Feb 2006
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Weird post back behavior

I am trying to debug a problem where when a page is submitted back to the server, it comes back to the same page, which it isn't supposed to do.

The forms action is "saveProof2.asp" and the originating page is "personalization1a.asp." Here's what's happening:

When you go to the personalization1a.asp page, you are allowed to enter custom wording on products who get it. saveProof2.asp either generates a preview with an images of the stock or just a textual preview if it doesn't get the image preview. This works until you get to the shopping basket. There is an Edit Personalization that loads all the information necessary for the personalization1a.asp page and takes you back there.

Here's the strange part. Only for items that begin with "2/" in the SKU number, it won't let you change the personalization. You edit your personalization but when you click continue, it doesn't go to saveProof2.asp. The query string when you're on the pers.asp page looks like ?opid=123&....&...&....&...&sku=2/1234. But when you click on the edit personalization and try to edit the wording, the page refreshes itself and truncates everything after the 2/ in the query string and the form action is tacked on the end so the query string looks like personalization1a.asp?.........&sku=2/saveProof2.asp.

Basically, the page won't let you advance with SKUs with 2/ in them.

Any help you can provide would help greatly.

Thanks!

Reply With Quote
  #2 (permalink)  
Old December 21st, 2006, 01:35 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Use Server.URLEncode(querystring) which will get rid of the /

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
Reply With Quote
  #3 (permalink)  
Old December 21st, 2006, 02:05 PM
Authorized User
 
Join Date: Feb 2006
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So do you think it's the / being in the url that's messing it up?

Reply With Quote
  #4 (permalink)  
Old December 26th, 2006, 10:31 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Based on your explination, yes.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
post back SKhna ASP.NET 2.0 Basics 1 March 10th, 2008 09:23 AM
post back k.manisha ASP.NET 1.0 and 1.1 Professional 2 February 7th, 2007 02:28 PM
Post Back rngrmn Pro VB.NET 2002/2003 1 May 5th, 2006 11:21 AM
Post Back rngrmn VB.NET 2002/2003 Basics 2 April 6th, 2006 01:14 PM
weird c# or browser behavior Ed Tijgen General .NET 0 August 18th, 2004 12:59 AM



All times are GMT -4. The time now is 07:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.