PDA

View Full Version : Digital File (ASP)


info302926
03-08-2009, 10:51 AM
I get this error when I want to Update a product.

Request object error 'ASP 0207 : 80004005'

Cannot use Request.Form

/Product_Update.asp, line 42

Cannot use Request.Form collection after calling BinaryRead.

In line 42 is this:
WA_redirectURL = "Product_Detail.asp?ProductID=" & cStr(cStr(Request.Form("WADAUpdateRecordID"))) & ""

What is wrong about this?


Please help.

Danilo Celic
03-08-2009, 02:56 PM
ASP have a limitation where if you are uploading a file, you cannot use Request.Form to access filed values. I know that's a PITA, but that's the reality of the situation with ASP. Because of that, the form bindings once a page has a Digital File Pro upload on it, will allow you to access those values. If you open up the Update server behavior and then in the redirect field click the Browse button, then click the parameters button. In the value side of the ProductID parameter, click the lightning bolt button to open the dynamic data dialog, then open up the form the WADAUpdateRecordID is within, and then select that filed. Click OK/Finished until you return to the page. The redirect line you're having an issue with should look somethign similar to the following:
WA_redirectURL = "Product_Detail.asp?ProductID=" & cStr(cStr(WA_DFP_UploadObj.Form("WADAUpdateRecordID"))) & ""

You should be good from there.

FWIW: I could have sworn that this was documented, but I can't seem to find it, so no surprise that you couldn't either. I'll check to see where best to put this type of information for ASP users.

bjgarner241692
09-22-2009, 09:50 AM
I had the same problem and this allowed me to fix it.
However, I now get this error on the update page - the file does upload.

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method

/beta/concentric-ncc/_admin/community_Update.asp, line 49

This is Line 49

WA_where_fieldValuesStr = "" & cStr(cStr(WA_DFP_UploadObj("WADAUpdateRecordID"))) & ""

Jason Byrnes
09-23-2009, 03:16 PM
Line 49:
WA_where_fieldValuesStr = "" & cStr(cStr(WA_DFP_UploadObj("WADAUpdateRecordID"))) & ""

should be:
WA_where_fieldValuesStr = "" & cStr(cStr(WA_DFP_UploadObj.Form("WADAUpdateRecordID"))) & ""

bjgarner241692
09-24-2009, 04:39 AM
Thank you.
Sometimes we stare at this stuff too long ;)

For anyone else having this issue, when you apply DFP to an ASP page created with DataAssist you simply need to use Edit / Replace to change every instance of Request.Form with WA_DFP_UploadObj.Form.