I have an application which loops through several thousand subscriber
records, compares each subscriber's requirements to a database of
businesses for sale, and then prepares and mails off an email
containing info from the database that the client is interested in.
Problem is that the ASP file exits as soon as it has sent about 50 or
so records to the Mercury/32 mail server on the local Ethernet. No
error message or program execution issues noticed. I then delete the
first 100 or so subscriber records and set the file off again. In the
loop thru the next 100 subscribers it prepares an email for approx
every second subscriber, then seems to hit this 50 max limit and
terminates again. Driving me crazy.
I figure that somewhere there's a queue building up which maxes
something out and causes some low level termination. To test that,
I'd like to build something into the loop thru the subscriber file
that causes a delay of 10 seconds or so before the loop starts again.
Here's a question for you....probably a simple answer but I can't find it....I have an ASP results page that is going to display test, tables, etc. What I would like to do is to have some kind of delay between the pieces that write on the page....in other words:
I have a page that allows a user to add a message for another user. They click the send message button, and then I would like to have a new page display that says the message has successfully been sent and then wait for around 5 seconds and then automatically take them to the next page. Is there ASP code that adds a delay or do I just need to code a loop that runs but does nothing?
I have an asp page that calls a "sendmail.asp" page which displays something like "thank you for your request". I want the "sendmail.asp" to show for 3-5 seconds and then redirect back to the index.htm page.
I have put in a while loop in the "sendmail.asp" page; it waits and then redirects but it doesn't show the "sendmail.asp" page at all. You can see in the task bar that its doing something, but redirects directly to the index.htm page.
What is the best way to do an ASP/sleep for 8 seconds (pause script for 8 seconds)? I have tried the following:
EndTime = Now() + (8 / (24 * 60* 60)) '8 seconds Do While Now() < EndTime 'Do nothing Loop
But unfortunately that keeps the CPU at 100% for that time. I need something that doesn't impact the CPU, as this delay will be in a while loop that will execute continuously for a few days.
I'm trying to do a registration page with CC information. I created my registration on an unsecure server and want to redirect the user to my secure server after they register so they can put in their CC info.
How can I make an interim page that says "Thanks for your registration, now redirecting you to secure page" What kind of function should I use to delay the redirection for 5 seconds or so. I'm running ASP.net with vb.net backend.
I have a project that uses a frameset. On the pageload event one frame calls an ASP.Net page that watches a message queue. The other frame has a page that allows a user to submit queries. Through research I've discovered that IE allows only two connections to IIS from any one client at a time. This is okay since at any given time I can only have the AJAX thread and a page request.
I noticed a problem today. If I introduce a session variable in any of my server side code it causes every request to lock for 90 seconds before a response comes back. After studying this behavior I am stumped. Is there an extra thread being fired whenever session is used?
I have a IIS server somewhere hosting an aspx website. Whenever i tried to access the website after some times, my browser will like wait about 10-20 seconds before showing the contents. But after that, subsequent pages is load up almost instantly. The page is not heavily loaded and every pic should be cached.
And sometimes, after 1 or 2 days didn't access the site, when i tried to access again, it will never load up the page. My IIS server is never shutdown running 24/7. I have to go to my IIS server and move around with the mouse then go back to my workstation and try again in order for it to work. (My IIS server (also my Internet gateway) will not go into Sleep mode because i still can surf from my workstation.)
I have a form with '/' in some of the field names, when I pass through to the next page the field name comes back as though it's been htmlencoded, so getting the value out of the field I need to convert this back to '/' with the replace (same problem if I have a ',' in the name) Is there an easy way to htmldecode or something what it converted to the encoded versions? (I have written a short function to basically do all my replaces for me, but I am guessing this isn't the ideal solution)
I have a database table where I managed to add with ASP an extra column which breaks down the previous column "text_data" and counts the number of words: Code:
I have an app that I want to send out an email to each user in our member list giving them their username & pw, but I don't want to overwhelm my mail server since there are over 1000 users in my database.
I don't want to overwhelm my web server, either, having this app hog all resources.
Luckily, I do have two processors running in this web server. Note: web server and mail server are different boxes.
So... what kind of pause routine would you all put into my VBscript ASP within the loop that sends out emails to all users?
Is it possible to put the logoff/shutdown/restart buttons on an ASP page or something similar? If so can anyone point me in the direction of some code or where I can read how to do it?
We have two applications for one system. The first application is a vb-app and the second is a web-app.
From the vb-app users have the possibility to enter right into the web-app. The vb-app is creating an appropriate url and opens the web-browser with this. The url contains user-information like user name and password. We don't want this url-information to be stored in the history-list, because then advanced users can find passwords etc here and that's not so good.
I am retrieving data from html form, perform some math. calculations on it and now i need to put this data back to some presentable form to display in asp.Earlier I get the data from FORM in text format, convert it into double value, now want to put it back in text format for dispal.
I'm trying to put my data from Access DB into a table, but, where I know how to do it creating one row per record, what I'm wanting to do is essentially extract each record into 1 cell, and then have the next record in the next cell, creating a table 2xn in size.
The data I'm getting for each record is a URL & a file location, to create an image hyperlink for each record, and need the images to appear in a table 2 columns x however many rows required.
Is it possible to put a variable in parameter for a URL? I'm looking to have a page with an input box and a link. When someone puts in a value in the input box and clicks the link it will take the value and pass it through the link to an asp page.
example:
Employee Name <input type="text" name="Tname" size="20"> <a href="emp_info.asp?e_num= Tname.value">Employee Info </a>
I have a recordset that I loop through all of the data within a table, within the same loop, I am trying to add another loops that pulls information from the first recordset to base the second recordset off of: Code:
I know this is Visual basic code, but the response should be global. I one line of code that stretches from here to Mars. Infact, it was used to guide the last probe there. How do I make it go over seperate lines? Code:
i need to put a date of the following format: 14 June 2003 into a text box. i have seen some samples but i can't get what i want. i tried the following: <%=FormatDateTime(todaysDate,0) %> and it only rendered 00:00:00 .
I'm trying to create a VBScript using ASP. However I'm having problems getting data from session variables into the right places. The example I have copied below works, however I need to replace "data1" and "data2" with real data from a session variable. Code:
i need to put the records i'm getting from my query into a string, can someone tell me how to do this.
i've tried GetString, but thats not what i'm looking for, my query pulls up ID's and i need to put these into a string so i can split them up to be used in another query.
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 > ?
select case code case "01" ups_desc = "OPTION1." case "02" ups_desc = "OPTION2." case "03" ups_desc = "OPTION3" case "07" ups_desc = "OPTION4" case "08" ups_desc = "OPTION5 " case "11" ups_desc = "OPTION6" case "12" ups_desc = "OPTION7" end select
I then have table called "users" which has the following id UserID Code
now the trick
I want to loop through the recordset of the user tables and populate a drop down where the code from the case and the user table are the same.
Something like
do while rs("code") = code <option> This then is populated based upon the loop(I have this code)</option> loop