Classic asp Request Form error 80004005 - asp-classic

I having problem when trying to post data to my ASP file with integrated pipeline.
ASP CODE:
<%
Response.Write request.form("StatusDate")
%>
HTML CODE:
<!DOCTYPE html>
<html>
<body>
<form action="myASPFile.asp" method="post">
StatusDate: <input type="text" id="StatusDate" name="StatusDate"><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
the page will show :error '80004005'
When I change the integrated mode to Classic Code, the request form is working.
What is the setting that I have missed out in integration mode in order to do the request form for post data

Related

Classic ASP Upload Throws Error

Good evening
I have been playing around with File upload i wanted to upload a File and have it send to the server and i Wanted to do this in plain Classic ASP
Saw some codes online and Played with it, Except it gave some Errors with IIS. Code looks like this
<HTML>
<BODY BGCOLOR="#FFFFFF">
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="UploadScript1.asp">
<INPUT TYPE="FILE" SIZE="40" NAME="FILE1"><BR>
<INPUT TYPE="FILE" SIZE="40" NAME="FILE2"><BR>
<INPUT TYPE="FILE" SIZE="40" NAME="FILE3"><BR>
<INPUT TYPE=SUBMIT VALUE="Upload!">
</FORM>
</BODY>
</HTML>
and the back end script looks like this
<HTML>
<BODY>
<%
Set Upload = Server.CreateObject("Persits.Upload")
Count = Upload.Save("c:\upload")
Response.Write Count & " file(s) uploaded to c:\upload"
%>
</BODY>
</HTML>
After enabling the debugger i got something that looks like this
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/uploadtest/UploadScript1.asp, line 4
800401f3
What could be Wrong?
The object Persits.Upload is a third-party component (a COM object) that has to be installed on the server. You can download a trial and/or purchase it here: http://www.aspupload.com/manual.html

Equivalient of ISSET in ASP (Classic ASP)

Ok Good afternoon.
I'm Just starting ASP.
in php i do something like this
<?php
If(isset($_POST["submit"]))
{
echo "You clicked me yeh?";
}
?>
Works without problems , Now i try to translate the same for ASP and i do something like this
<html>
<head>
<title>testHome in ASP</title>
<body>
<%
if Request.Form("submit") ="test" then
Response.Write("Ok Mate You Just Clicked Me!")
%>
<form name = "superform" id="superform" method="post" action="idc.asp">
<input type="submit" name="submit" value="test"/>
</form>
</body>
</head>
</html>
And instead i get this super annoying error.
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.
Please What Seems to be the error here?
You need to close off the 'if ... then'
end if
If you can, you can get IIS to send error messages to the browser: IIS6 or IIS7
And if you are using visual studio you can also setup debugging

Long delay when submiting form onload?

To post data to a remote payment server, my website generates a page that looks like this:
<html>
<head>
</head>
<body onload="document.form1.submit()">
<form name="form1" method="post" action="https://secure.paymentsite.com/purchase" >
<input type="hidden" name="instId" value="1">
<input type="hidden" name="itemId" value="23">
<input type="hidden" name="currency" value="USD">
<input type="hidden" name="amount" value="9">
</form>
</body>
</html>
I generate a page like this so that I can log the choice the user has made to my database before redirecting the user to an external site to pay.
However, it takes around 6 seconds for the form to be submited once the page loads. During this time, the user is displayed a plain white screen, and may wonder if the website is broken.
Is it possible to make a form that submits as soon as the page has loaded?
jquery's $(document).ready(function(){....} executes when the DOM has finished loading. That would be one of many solutions.

Difference Between Web Page and Web Form

I want to know the difference between Web Page and web Form
A web form produces a web page. Or many web pages. A web page is just a loose concept of a "document". A web form is a type of object which can produce web pages.
WebPage is a document / information resource that is rendered usually as HTML/XHTML on World Wide Web and is accessed through Web Browser.
Whereas, Web Form is a document where you can design and develop the Web Page, Web Form usually provides features which can enable a user to develop a Web Page.
<html>
<head>
<title>my web page</title>
</head>
<body>
<b>my web page. it does not have any html controls like textbox and button.</b>
</body>
</html>
<html>
<head>
<title>my web form</title>
</head>
<body>
<form action="mySecondPage.htm" method="post">
<b>my web form. it may contains html controls like textbox and button.</b>
<input type="text" id="txtUserName" /><br/>
<input type="submit" value="Submit User Name" />
</form>
</body>
</html>

ASP.net post and default page

Scenario:
I have a regular aspx page with a form.
When someone clicks a button the form submitted via post like normal.
HOWEVER. The page where the form resides is the default page(Default.aspx). So when someone goes to the site: http://site.com/ and submits the forms he gets redirected to http://site.com/default.aspx. I tried setting the action of the form to http://site.com/. However asp.net does not allow to use root urls with a POST.
So is there any workaround? Ajax is not an option.
Have you considered creating a plain HTML form? You would need to place your plain HTML form outside the ASP.Net runat=server form on your page.
<form id="form1" runat="server">
ASP.Net controls on your page go here
</form>
<form method="post" action="http://www.site.com">
<input type="text" name="input1" />
<input type="submit" name="input2" value="Submit" />
</form>

Resources