close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Cannot use Request.Form collection after calling BinaryRead

Thread began 12/10/2009 1:48 pm by info289797 | Last modified 12/22/2009 1:21 pm by info289797 | 8514 views | 18 replies

Eric Mittman

You should try moving the rs code below the DFP upload code. So would want this code:

<%
var Recordset1__MMColParam = "77";
if (String(Request("MM_EmptyValue")) != "undefined" &&
String(Request("MM_EmptyValue")) != "") {
Recordset1__MMColParam = String(Request("MM_EmptyValue"));
}
%>
<%
var Recordset1_cmd = Server.CreateObject ("ADODB.Command");
Recordset1_cmd.ActiveConnection = MM_GIFTS_DB_STRING;
Recordset1_cmd.CommandText = "SELECT * FROM Product1 WHERE ID = ?";
Recordset1_cmd.Prepared = true;
Recordset1_cmd.Parameters.Append(Recordset1_cmd.CreateParameter("param1", 5, 1, -1, Recordset1__MMColParam)); // adDouble

var Recordset1 = Recordset1_cmd.Execute();
var Recordset1_numRows = 0;



To be just after this code:

WA_DFP_SetupUploadStatusStruct("WA_UploadResult1") ;
if(String(WA_DFP_UploadObj.Form("UploadImage")) != "undefined"){
WA_DFP_UploadFile("WA_UploadResult1", "file", "Images/161_1_1_medium.jpg", "pics/", "[FileName]", "2", "[FileName]_[Increment]", "20074", "false", "0", "0");



Please give this a try and let us know what the result is when you test the page. If you have any more problems with this please post back with the page in a zip archive so that we can look into this further.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...