Wait For Connection.execute Method To Complete...
I 've coded an asp webpage where a user could toggle a boolean value through a checkbox.
When the checkbox was pressed, the page posted the toggle action to itself, a
connection.execute "UPDATE tableName SET fieldName=(Not fieldname) WHERE field_id=1
query was performed and the checkbox, after I had retrieved its new value through a recordset, changed its appearence(state). At first I used an MS Access DB and it worked fine.
After I had switched the hole application to work with MS-SQL, although I changed the above query to Code:
View Replies
ADVERTISEMENT
I have a web form that uploads a file to the server where the file is proccessed and outputs a report, the time lapse between uploading the file and the report being produced varys from a few seconds to a few minutes depending on the number of clients requesting reports.
My question is after the file has been uploaded is it possible to keep the connection open and inform the client when the report is ready for downloading.
View Replies
View Related
can i gain the two result. in an asp page which using a stored procedure with execute method.
i want to execute the query and return the count value the query at the same time. is it possible and how?must i use ado? it is not possible to make it with execute method in asp.
View Replies
View Related
Which of the following would be the most preferred connection string method? What is the difference?
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/marketing/ics.mdb")
strConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/marketing/ics.mdb")
View Replies
View Related
what is more efficient, opening the database once in the beginning of the page then closing it at the end of the page, or opening the db connection each time you need it.
for example:
i have a page that executes 50 queries. is it better to open the db, execute the queries, then close it, or to open and close the db 50 times?
View Replies
View Related
Wondered if anyone could help me out with some simple connection string problems I'm having.
Ive got this on the page so far and it works:
----------------------------------------------
Dim strConnString
set strConnString = server.createobject("adodb.connection")
strConnString.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=c:Inetpubwwwrootdlnforumforumadminwwforum.mdb"
strConnString.open
-----------------------------------------------
But I want to change it to a Server.MapPath method, so I tried the following:
------------------------------------------------
Dim strConnString
set strConnString = server.createobject("adodb.connection")
strConnString.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)};" & Server.MapPath("forum/admin/wwforum.mdb")
strConnString.open
---------------------------------------------------
But now I get the following error:
-------------------------------------------
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4E)
Operation was canceled.
Can anyone help me out?
View Replies
View Related
[This question is directed at Bob Barrows, but perhaps someone else knows an
answer. In any case it is good information for the group.]
I really like Bob's "stored procedure as method of Connection Object"
technique. It is convenient, compact, and concise, and simplifies protection
from SQL injection.
HOWEVER, I cannot figure out a way to pass a null value to an INT parameter
when I use this. Null string parameters are fine. The error reads:
Microsoft OLE DB Provider for SQL Server error '80040e07'
Operand type clash: text is incompatible with int
As you can imagine, "text is incompatible with int" gets my attention. I am
explicitly passing a null (not the string "null"). I am using JScript on the
web server and connecting to SQL Server 2000. An example: Code:
View Replies
View Related
I tried to run 2 queries in single connection. But it doesnt work to the second query
page will return an error but execute the frist query only. How can i solve this problem.
I'm using Microsoft Access 2000. Here are the code an error that return
Dim objConn, strSQL1, strSQL2
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "DSN=egbit_dev;"
strSQL1 = "Update ADM_USERTAB Set USER_PWD = '" & new_pwd & "' where USER_ID = '" & userid & "'"
set rsUpdate_Pwd = objConn.Execute(strSQL1)
strSQL2 = "Update EGBIT_PWD_STATUS Set password_status = 'change' Where user_id = '" & userid & "'"
set rsstatus = objConn.Execute(strSQL2)
error :
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
( it refering to line that execute set rsstatus = objConn.Execute(strSQL2) )
View Replies
View Related
I'm using an access database and found following problem :
I have a table X with 2 records : record 1 & record 2. I execute following
procedure with 2 steps :
1. The procedure deletes records 1 : connection.execute "delete from X
record 1"
2. The procedure adds record 1 again using the recordset object.
Result : nothing happens !
I have the feeling that the "delete" statement is executed AFTER the "add
record" statement. Or the "delete" statement did not finish before the
start of the "add record" statement (= asyncrhonous processing).
Can somebody explain me this behavior ? I have this problem only when using a MS Access database and not with an MS SQL database.
View Replies
View Related
Does anyone have a real nice way of putting a please wait page up while a web page it updating a database with a large query?
View Replies
View Related
Is it possible to make an asp script 'wait' inbetween commands?
A quick example (but not what I've got in mind):
Response.write ("Please wait. Validating password...")
[wait 5 seconds]
Response.redirect ("done.asp")
View Replies
View Related
On my web page i have 3 frames.Firs two are for parameters and in 3 frame is for webchart.it may take max 10sec.to gen, and display the chart.How to display on this time message like: "Please wait.."and if the chart is completed, then draw the chart?
View Replies
View Related
any way that i can make my application wait for some time so that HTML page loads in that time, right now I am using following code,
=================================
Public Sub waitBySecs(ByVal nNumSecs As Integer)
Dim d1, d2 As DateTime
d1 = DateTime.Now.AddSeconds(nNumSecs)
d2 = DateTime.Now
While DateTime.Compare(d2, d1) < 0
Application.DoEvents()
d2 = DateTime.Now
End While
End Sub
====================================
but the problem in this function is that it takes the whole CPU usage, so I am looking for an alternative for it.
View Replies
View Related
I have one ASP page. During opening this page its taking some time to open as its has to process some asp code. I want to display some animated gif or text showing that page is loading or please wait...or some thing like that.
I put image and text on top in file and then asp code but its not showing its only showing non asp part when its finishing the asp processing. I tried with response.buffer = false too. but no luck. Is there any way that I can show some text during asp page is loading or processing.
View Replies
View Related
I eadded in some code to make the server take a couple extra seconds to spit out results(for my test page) and it thinks for a few seconds but it never shows the wait message while it's thinking.
I have a web application that has to post and get a response from a few different servers before the user is redirected so I can't just change my sql code or anything to make it faster. It usually doesn't take more that 5 seconds but I would really like to have a please wait message since in the future that could take longer.
It's done in classic asp. Simple as a user fililng out a form and submitting it. The form is processed then the user is redirected.
View Replies
View Related
How can I brake my code in order to wait for a session variable to be filled?
I'm uploading an image and would like to get the folder name where it'll be stored from another form that is submited in sequence ..
View Replies
View Related
I have a asp result page which shows that a record has been successfully updated. After this display I need to redirect this to a different page.
However, I would like to keep the display for few secs before the redirect. I would appreciate the command to do this.
View Replies
View Related
I need to display a "please wait" message when the user click a post button on a webform, so that the webform can start data processing. I am using asp.net in vb.net code-
behind. I saw some javascript example, but I could not find a way to show the message before the processing.
View Replies
View Related
I have seen a few articles with a javascript example but it is not working for me. The server side code is processed first and then the javascript so I basically get my page loading splash screen displayed for a split second and then my page I am navigating to.
How do I display the "Please Wait..." before the server side code kicks in ...
View Replies
View Related
Example is: If a user logs in failed because of invalid userid or password, I want display a message indicating the problem, wait about 30 seconds, then automatically redirect to login page again. What command or method should I use to wait 30 seconds?
View Replies
View Related
i have an uploadpage where users can upload images. When the image is uploaded my logo is added with aspimage.
the file hasnt been saved before i try loading it with aspimage. How can i make the browser wait 2 secs before executing the next piece of code, to allow the file to be saved properly before trying to access it again ?
View Replies
View Related
Do you know any way to load a page, wait for 5 seconds IN SERVER PROCESS, and then redirect in the server side, - not using javascript?
What I pretend is to show a page that loads a .GIF file that appears to be loading something, and after 5 seconds redirect to results page, so users apparently think that a backend proccess has occoured.
View Replies
View Related
PrinterShare = "GarchiveISLaser"
Set objFileStream = objFSO.CreateTextFile(PrinterShare)
objFileStream.Write("test")
objFileStream.close()
This code is on a page that if redirected to or javascript window.opened then I'll get a "Permission denied" error message. If I wait maybe 3-5 minutes, I can refresh the page and the print job will print successfully.
View Replies
View Related
I have a machine ftp-ing a file into a directory where a script picks it up and does something to it. I dont want the script to process the file if the file is still being copied.the only way I can figure out to do this is to check the size of the file... then wait 'n second and check the size again. and if the size is exactly the same... then asume its all there. but this doesn't seem like the right way to do it. is there no easy way or simple property I can check to see if its done?
View Replies
View Related
I've got a variable that can hold one or more words called strUserName. I want to display the complete value of that variable in a form field but I only get the first word
Agent:<input type="text name="agent" value=<% =strUserName %> size=30>
View Replies
View Related
I searched this forum but couldn't find:
How can I retrieve the complete URL of the current page? (by using ASP, not Javascript!)
What I mean is this - I have a long URL something like:
https://www.zzzzzz.com:8080/zzzz/zzz.asp?aaa=1&bbb=2#a1
I know I can read parts of URL through server variables, such as PATH_INFO, QUERY_STRING etc. and then concate the string variable, but that is not enough! I need to request the COMPLETE URL like I mentioned in the example.
View Replies
View Related
I need a function that would retain a value like 112.50 as opposed to 112.5. It is needed for currency values and display. I tried using cSng, cCur, but they all seem to trunicate the zero.
View Replies
View Related
i dont know if this should be a mysql question or a asp question...
i have a database that stores all the orders and each orders total. How can i make it so that i can add all the order totals together, to get a final total
Im using mysql.
View Replies
View Related
How can i delete a complete folder including subfolders
and files in the subfolders. Or do i to delete one by one
View Replies
View Related
We are planning to improve the present search (Product DB search). Is there
any way on ASP script to make an auto complete text box, loaded with the
product names (like in google suggest). I hear AJAX, can that be used with
ASP scripts?
View Replies
View Related
is this one possible with ASP?
"To complete your registration, click on the link below:
http://sub.domain.com/register.php?a...11&i=123456789 "
if this is, can someone please explain how to do it?
View Replies
View Related
I've got a combo box with the values:
AAA
ABA
ACA
BAB
BBB
BCB
If I type the letter "A" it jumps to "AAA" in the list. If I type the letters "AB" it jumps to "BAB" as "B" was the last letter typed. Is there a way to have it accept "AB" as "AB" and jump to "ABA"?
View Replies
View Related
I have problem with my page, but IIS only show "The page cannot be displayed". How to display complete error message ? I think I've read this sometimes ago here, but I can't find it.
View Replies
View Related