Request Stopping
I have 3 pages. on page 1 there is a select box, name="UD", containing "Data B"
page1 submits to page 2
on page 2, <% USD=request("UD")%> results in USD = "Data B"
USD displays in a text box as "Data" (the space and B missing)
page 2 submits to page 3
on page 3, <% USD=request("USD")%> results in USR = "Data" (the space and B
missing)
How do I keep the data complete?
View Replies
ADVERTISEMENT
This problem is regarding ASP/AJAX. I don't really want to bore you with all the code so i will start off by giving an overview of the problem.
I have an ASP page that places an AJAX request to an ASP page that retrieves a random record from the database, the information returned is then updated into a Div on the original page. The original page has a Refresh link to repeat the procedure and select another random database entry. With me so far?
In firefox this works perfectly, but im having problems in IE. It seems that the ASP page that accesses the database is cached somehow as everytime i use the refresh link it returns the same data. I have used the time() function in the returned data so I can see that it is exactly the same info returned with each refresh.
It seems that the response is being cached and rather than rerunning the script the cache is being returned.
View Replies
View Related
Is there an effective way to stop pages from being cached?
I've created several websites that have dynamic content and images that are managed by a client. The images are named according to the "id" generated via an Identity column of their corresponding database record (ex: 1058.jpg). The problem occurs when the client tries to change the image.
The client gets understandly confused because the old image is still displayed, due to the browser caching the image. How can I force the browser to stop caching the page/image?
All of the ASP pages already have the following:
<%Response.Expires = -1%>
<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no-cache">
Any ideas?
View Replies
View Related
I have a few reports that grabs +- 27 000 records from a database, does a few calculations and queries on them, and then writes the results to a text file. As you can imagine, this does take a while (half an hour if the server isn't busy) and hammers the servers resources.
I sometimes realise (after I've started the page) that I made an error in my code, or that another report is more important at the moment. The only way to stop the page if something like this happens, is to bounce the server (even closing my browser doesn't work) - which won't make me very popular .
Is it possible (at all) to stop the execution of the page after it has been started? (I know that ASP is executed on the server, and only the results are sent through, but doesn't it have some sort of event handling?
View Replies
View Related
I have a asp page which is pretty long. This consitst of various recordsets. My intention is to stop execution of a code at a cetain point and test one value prior to this point. Is there any way to do this?
View Replies
View Related
I have this asp screen (not .net just asp) where user can fill in report criteria and then when they hit the "Go" button, at which point the report page will be displayed. Sometimes the reports are quite big and may take 2 to 3 minutes to complete.
If the user realizes he makes a mistake as soon as he gets to the report page, he may hit the "Stop" button and think the server has stopped generating the report, but it's not true. The server is still running the process.
This is particularly more obvious for developers like myself cos I have the server installed on my workstation. When I hit the Stop button and then back to the report filter page and make some changes and then hit the Go again, it'll take 2 to 3 minutes before it'll show the report page this time, as if the server was trying to complete my last report first, before processing my current new request.
Question I have therefore, is, if I'm running a long server process, then how I can get the server to stop this thread (or process?) when the user hits the Stop button, or hits the Back button?
View Replies
View Related
I know this probably sounds like a newbie question, but I was under the impression that secure pages (https) don't appear in the history/address bar history list - this appears to be incorrect?
Should I really be putting some form of expiry command at the head of each of these pages if I don't want casual users to see them? I use Classic ASP so is it better to use a command via this lang or the old META methods?
View Replies
View Related
im making a simple site where people can add comments into a shoutbox. only ive had experience of people adding in html tags and javascript to redirect people away from my site and display images etc which im not interested in.
how do i stop this from happening? is there a way to intercept the form contents and kick out the code leaving plain text? or changing the code so it displays the real code using < and > ?
View Replies
View Related
Why does the error below occur whenever the statement Request.BinaryRead Request.TotalBytes) is executed for uploads larger than 100K? I thought the 100K limit applied only to Request.Form. This does not occur with smaller uploads. This is running on an IIS 6 server with full FP2002 extensions.
ERROR:
Request object error 'ASP 0104 : 80004005'
Operation not Allowed
View Replies
View Related
Request.Form and Request.BinaryRead cannot be called after each other as it causes errors.
I need the BinaryRead and I also need to access other form values, but I cannot call them after one another. What do I do?
View Replies
View Related
What is the difference between these two statements? They seem to do the
same thing...
response.write(request("variable"))
response.write(request.querystring("variable"))
View Replies
View Related
when the asp page is Request("txtName").i can use "testpage.aspx?txtName=User1" to post the value.but when i use Request.Form("txtName").i cannot use that method,what can i do to solve that problem.(as i cannot modifty the request.form syntax but i need to post data to that web page, is there any method so that i can pass that parameter?)
View Replies
View Related
I saw some program using "request("fieldname") " instead of "request.QueryString" to get the value from URL, what's the different ?
View Replies
View Related
I want to know what's the differences between
Request.Form("Field Name") and
Request.QueryString("Field Name")
OR they function exactly the same, which is to return the value of the
field??
View Replies
View Related
I am trying asp.net for the very first time. When i try to work on an
example in a book, it says to create a project for (asp.net web application)
Location: http://localhost/aspexample1
I get error 400 bad request.
IIS server is running.
View Replies
View Related
Classic ASP, WIN2000, IE6.0
Error:
400 BAD REQUEST
The problem is ramdom
View Replies
View Related
I am developing site in asp where I need to call a url at every interval. Is there a way to automate this. I want to call the url every 15 or 30 mins.Cureently I have written a asp script tp call it using
Set objWinHttp = Server.CreateObject("WinHttp.WinHttpRequest.5.1")
objWinHttp.Open "GET",URL
objWinHttp.Send ' Send it.
strResponse3 = objWinHttp.ResponseText ' Get the response string from the object.
But it is not schedule..I can call it only when I rum the asp script. So is there any way I can schedule this url call for every 15/30 minutes.
Also forgot to mention : the site does not have that much traffic that I can add it in index page...there may be a user visiting the site in 5 hours time or within next 5 mins or for next 2 days there may be no visitor.
View Replies
View Related
I am trying asp.net for the very first time. When i try to work on an
example in a book, it says to create a project for (asp.net web application)
Location: http://localhost/aspexample1
I get error 400 bad request.
IIS server is running.Please help me resolve this?
View Replies
View Related
I have a form which shows all Records from a database
eg.
select * from sometable
the user inputs criteria in a form on the sam page and submits it.
i need to see if the form has been submited. and the way to do it is to
see if i have 'Request.form(somefield)' and then refrase the sql into
something like
select *from table where something=this and somethingelse=this
my problem is that i have to check every form field to see if it has been
set(not empty).Is there a way to see this without checking every form field?
View Replies
View Related
Can we execute an Access Request with ASP? If Yes how can we do that?
View Replies
View Related
I created a ASP which has a form as well. The form has a list box.On the click of the submit button I wanted to just display the contents selected from the list box.
When in the VB script part I say dataString = Request("Data_List"), (where Data_List is the list box id) it gives me an error message saying "Object Required. Request"
I tried it with the text box also. It gave me the same message.
View Replies
View Related
I just want a person not to see a page if they have not come from paypal. Whats wrong with this code?Code:
<%
if(Request.QueryString("http://www.paypal.com") != "") then
Response.Redirect("index.asp")
end if
%>
View Replies
View Related
I have use many request already but this time i really don't know how. Here is my problem, I use Request("var1") to request the form that i have submit it and it always nothing. but when I use Request.form to show all, it appear all include that variable too. And the web server is IIS 6.0 with windows 2003.
View Replies
View Related
Trying to test if Querystring is empty. then display content based on that. Currently trying: Code:
<% if Request.QueryString("variable")="" then
response.write ("hello") End If %>
Basically I'm looking for a way to display certain content only on the main page when no variable has been set.
View Replies
View Related
We are developing a web application which is targeted at two
types of users.
1) Users from within our NT domain.
2) Users outside domain.
The application will behave differently for these two types of users.
My question is that how can we identify where the request has come from? If from intranet or from outside?
View Replies
View Related
slight problem (for newbie) giving error:
0x800A01B6: Object doesn't support this property or method: 'Request.QueryString.ID'
source of problem is line 6 (the bold one):
<%
Dim players__idd
players__idd = "1"
If (Request.QueryString.ID <> "") Then
players__idd = Request.QueryString.ID
End If
%>
i call the page using profile.asp?ID=1
View Replies
View Related
i m trying to pass a string valuewith a link:
like .............
response.write("<a href==teamemployee.asp?team=" & team & ">" & team & ">")
at the run time the value of team is "Admin & facilities" .
but when i read the value of team by using request.querystring("team")
. it returns only the value "Admin" .
but if the value of team is "Finance "
it returns the "Finance " .
Now , i think you can understand my problem that , request.querystring("team") is returing the value
before space . how to solve this problem .
View Replies
View Related
I have something like this in my form:
<select onchange='document.getElementById("iframe1").src="cities.asp?country="+ this.value'">
<option value='' selected>-----Select-----
<option value='Overnight'>Overnight
<option value='Email Special'>Email Special
<option value='Fax,Email,Pickup'>Fax,Email,Pickup
</select>
this goes to cities.asp and the value of country is passed over to the cities.asp
Now what i want to do is ..I need to pass on one more value in addition with the value of variable coutry being passed.
i want to forward Request.form("CompanName") too to cities.asp.
is this the right way of modifying the statement orCAN i do it this way by any chance?
<select onchange='document.getElementById("iframe1").src="cities.asp?country="+ this.value'&Companyname='<%"&Request.form("companyname")&"'%>">
Please advise?
View Replies
View Related
I have a problem! Lets see if i can explain it....
if the querystring referrerid = "" then the page crashes.
i.e.
.com/register.asp?referrerid=
so its blank.
If request.querystring("referrerid") = "" then
I tried using a redirect to the same page without the querystring but the code still picks this up as being <request.querystring("referrerid")= "" > and ends up looping.
I don't want to replace the "" with anything because a form box takes it information from there or a session("referrer") if the user has entered incorrect details in the registration and been returned to the same page.
Does that make enough sense for anyone to make any sense?
View Replies
View Related
I use the Request.QueryString to pass variables from one page to another in ASP but my question is how can I pass a variable such as the one used in Request.QueryString from an ASP page to a XSL page?
View Replies
View Related
I've got a form handler that I'm useing to grade a test. The test contains some random questions pulled from a database. I'm wondering if there is a way with the request object, to get the name of the form element from the page with the form in addition to the information entered in the text box, or the value of the radio button clicked. I can get the value's from text boxes and the values of radio buttons selected, but I can't get the name of the form element. I've looked in the reference material I've got and Googled for an answer, but can't seem to find one.
View Replies
View Related
The asp page I developed works fine on my development machine and local IIS.
When I load the page from the production server console, using an older
version of IE, the page executes twice. I modified my variables with
javascript to verify that the request is being sent twice from the client. I
further proved this by accessing the production page from my development
machine, and it works fine.
This has never happened to me before. How can I figure out why the page is
being sent twice from and older IE, and are is there a nice work-around?
My ugly work around is to just modify my variables(javascript) after I
submit so the second submit does not do anything.
View Replies
View Related
Why ASP's MS XML HTTP request object gets another page's HTML source
without interpreting path differences. For example, if my page is:
www.test.asp/one/two/page1.asp
with XMLHTTP getting source code of page:
www.test.asp/one/page2.asp
and this latter page has a CSS with path ../include/css.css, it won't
be used in page1.asp because path will stay as it is "../include/
css.css", not "../../include/css.css" as needed for page1.asp?
View Replies
View Related