What I'm doing is using the same page to process data as well as display the forms, the form action goes something like Action="me.asp?action=someting" and the data is sent via POST. but when someone wants to refresh that page, it prompts to use the same values again which I dont want to happen.
When creating a form I normally post the data to the same page-picking up the form has been posted and act accordingly.
Is there any way of destroying the post data without having to redirect back to the same page after m,y code has executed?Basically this is to stop the form data being re-submitted if the user refreshes the page
i have a series of .asp pages that i am dividing into model, view, control logic. my view collects a whole bunch of data and posts it to the controller. im wondering if there is a way to somehow "re-post" this same data to my model page.
in short, is .asp capable of taking data posted to a page and re-post that same data to another page?
I have an ecommerce site that works okay. My problem is that at the point where credit cards are put in I get an unique ID from the database which gets put into a session variable and then the user goes through makes the transaction and all is well.
The problem comes where if the browser isn't shut down you can go through the shopping process again but the session variable stays the same and this is causing me concern.
What I want to do is if the person leaves the site then the session variable is destroyed. Is there a line of code that can do such a thing or am I being simplistic in my approch?
I am using sessions to check if user is logged in or not and on the basis of that i redirect to the main page. For the matter iam using frames and based on condition i change the src. The session gets killed if i use the logoff button provided on the screen or when i close the browser and restart it default property,This works fine in IE.
But when i tried it out in mozilla and other browsers which support tabbed pages i encountered the problem when user closes the tab page directly, since the browser hadnt been closed ( only the tab page ) and if i type the web site address as the session hasnt been destroyed it shows the main page directly bypassing the logon page.
i have an asp page with a form that posts to itself. (the action of the form is the same page the form is on). i validate input and dont accept it if there is something wrong with it. problem is that when the form is submitted, and i display the error message, the data the user typed in the box is gone. i work around this by setting a session variable as soon as the user hits submit and store the data the user typed. then for the default value of the textbox i have <%= Session("var") %and that leaves the users data in the box for them to edit. is there a better way i could do this?
Is there a way I can POST data from a ASP page to another page? I am not trying to POST data from a form to another page, but would like to create the POST headers from different variables, and then send it to another page
I have a temporary file being created in an order processing system. After the user agrees the data is correct the data needs to be written to a permanent table. There are usually 100 or so records. what is the best way to do this? the fields names are not the same either and the new records also need to be updated with the price from the parts table.
The price comes from the parts table. When I link the parts and temp tables and try to insert into the permanent table, I am using a loop and it's taking FOREVER.
Is there a way to see all the post data that is sent an .asp page. I am working on a page that is being returned from another application and I would like to know what data I can work with.
I have use an affiliate link on my site, and I did not like it because it did not have my sites banners on it, so I asked the permission of the other site to change the display and they aggreed..
The affiliate site has 4 pages of forms linking to each other so it goes something like form.asp > results.asp > results_details.asp > confirm_details.asp >>>>>> proceed to payment..
I wanted to grab the each page page using the XMLHTTP object and then the post of the form to a local pages on my site.. The local pages would grab the request.form string and then using code something like below..
on my page quote123.asp, I have <%=request.form%> and I never see the string "select=All" - why is this... Code:
What is the maximum size of POST data? A page on the ASP FAQ web site (http://classicasp.aspfaq.com/forms/...parameters.html) is confusing me: "While GET is limited to as low as 1024 characters, POST data is limited to 2 MB on IIS 4.0, and 128 KB on IIS 5.0. Each name/value is limited to 1024 characters, as imposed by the SGML spec." Does this last sentence mean that no form field can submit more than 1024 (or 1024 minus the length of the form field name) characters through POST?
We have a create ASP page where the user fills in the fields and clickssubmit to post the data to a save page. Recently it looks like the data is being lost at some point. We use Request.Form.Item to get the data from the create page but its just bringing back a blank field.Has anyone else had a problem like this or have an idea why it might be happening?
I have developed quite a lots of ASP which accept POST data in plain text format. Those ASP URLs are fixed because other applications of other parties are using them. So, I want to redirect the POST data to new aspx pages. However, if I use Response.redirect("somepage.aspx"), the POST content is lost.
Does anybody have the syntax to post form data to a CSV file? On submit, my form page will post to another asp page that will actually handle the data being dumped to a CSV file. I just can't seem to find the correct ASP syntax for this.
Is there a way to save post data or post data from a redirect like this: Response.Write("<meta http-equiv=""Refresh"" content=""4; URL=AdminSelectAction.asp"">") If there is not, I'll have to spend a LOT of time coding in session variables and what not.
I was just wondering if there is a variable or procedure for getting all the POST data sent to a page. I don't want to have to handle every case for the POST data, I just want all POST data sent to the page to be outputted automatically.
1. User fills in form and hits submit 2. Some processing is done with the posted data using ASP 3. The posted form variables now need to be submitted to another script which only receives POSTed data.
How do I send the posted data to another script? I can't run step 2 on the next script as its validation script and I'm going across two servers.
I am having an Excel where I maintain my data. I want to extract details from a website based on the data that I have in my Excel(i.e login to that website,post the data to the Website and get the details from the page n update it in my excel). How can I do this?
We've discovered a sticky little problem in one of our intranet based apps where the logon page can error out causing the user's uid and password to be visible in the returned post data.
e.g. "The Page Cannot be displayed"...."Technical information(for support personnel)"......"Post Data:MyUserName=BloggsJ&MyPassword=letMeIn....."
The page does contain error handling and the problem is extremely intermittent and revolves around write permissions/network connections to an Access database. I've tried to catch each possible error point in the code explicitly but this is proving impossible because of the sheer number of places it can occur. Code:
A coworker is creating a form. The user fills in some numerical data. We would like to present them with a Calculate button that they can use to submit their numbers and be presented with the same information but also with the totals at the bottom. BTW, we cannot use JavaScript so it must all be done using server-side ASP.
That part is fine but we also want to provide them with a Submit button in addition to the calculate button. Now, I realize that if both buttons are contained within the same <form> tag, there can be only one action URL.
We toyed with the idea that if name=calculate, display the original form with the fields filled in and the calculations done and if name=submit, redirect to the thank you page but given that the method is post, then the redirect would not transfer the post data. If the method was get, then the redirect could include the query string data in the URL but that is not the case.
I have a web application running inside an organization and I need to post some data to an asp page sitting outside the organization
How do I get failure or success error from the outside page? currently I am using IFrame,but I wonder if I get 404(server down) how do I know I go an error?
BTW:since it is an organization i am open to other solution,cause i might be able to install activx,NET components or any other stuff.
I need some help/pointers here. I maintain an ASP/MSSQL e-commerce site.
I need to force the use of HTTPS for private/payment data and force back HTTP on other pages. Some googling taught me the use of checking Request.ServerVariables("HTTPS"). Though GET data/QueryStrings are passed all my POST data is lost because of the REdirect. Code:
I want to post the form data (http://server/page1.asp) to a modal dialog window (http://server/modaldialog.asp) with a desired height 200px by width 200px.
Here's my attempts and problems:
Attempt #1) In http://server/page1.asp, it has code <form action="http://server/modaldialog.asp" method="post" target="_blank">
In http://server/modaldialog.asp, it has code <body onBlur = "self.focus()">
It can produce modal dialog window modaldialog.asp, but I want to set the width and height of modaldialog.asp.
Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp", params, "dialogHeight:200px; dialogWidth:200px;");
This is the effect I want. But this is not posting the form data to modaldialog.asp. Any workarounds to my problems??
Im trying to either POST or GET data using an asp action provided by world gift card, and display the data on our website. So the form is on our server, and the action is there server asp script on there server.
I want the data to come back to our server.. I want to use this data to display to our customers so they can check the balance of there gift cards etc... This is what i have so far.. Code:
When an external resouce programmatically post the XML document as content of http post request, and at server-side, I can read the XML data from http request's body. Just like this example provided by Steven Chen:
#Happy Days Are Here Again: Posting XML to the Server http://msdn2.microsoft.com/en-us/library/ms950790.aspx
After I process the data, I need to write a response message to the external resource in xml data format(either succeful messge or failed message). what people usually do, do I just write the xml message to response output stream(let them extract from my page themselves) or post data back to their page (which initially post/submit data to my server program).