I want to be able to redirect clients based on the server time. This is to direct clients from different parts of the world to different pages. Have seen a Javascript thta does this based on the clients time but can't find anything that does it using the server time.
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.
I want to retire the old server. During the DNS change, it will take about 2 days. how can I redirect the old traffic to the new server, and make sure header information (i.e. the URL) will get redirected as well so that the new server will know which application to response to the requests.
I have a website that links to some databases on a free ASP host, and sometimes the ASP server is down. Is there a way to redirect if the server is down?
What is the "right" way to redirect to an internal server from the outside? In other words, users can connect to my website and then I need to be able to redirect users with the correct login to a server with an internal address (10.x.x.x). Obviously I can easily redirect them with the address, but the idea is to protect the internal address from the outside.
I tried linking from the public site to a script page that simply redirects to the internal address, but the internal address still appears in the address bar and I don't know how to map it to a name without every user needing a host file entry. Anyone know of a way to do this? Basically the purpose of this is to allow external users to connect to an internal server to view proprietary data.
I have a time out error from my asp application thought my connection timeout is 6000 sec but when i execute my page it gives me error after 30 sec.Is there any mothod to fix it
I am updating a value in DB by the following command.
strSQL3 = "Update Click_Count Set Click='1'" objConn1.Execute(strSQL3)
The data type for click in DB is nvarchar. I've also tried int and numeric but none of them works. The web page processes for a while and then says "time out".
I have an upload page set up and the script timeout is set to 2000. What I want to do is have the user redirected to a custom error page that I have created when the script times out. I am having trouble achieving this.
ok here is my scenario - using model, vew , controller architecture:
-- user submits the view page to the controller
-- controller issues a server.execute on a model page to update the changed information
-- upon successful updating of the the information, the controller issues server.transfer back to the view
-- everything is fine at at this point, however, if the user hits the re-submits the page at this point, the original items are still in the request object from the first time around because the page never went out of scope - so this causes another update to be inssued because changes are detected between what is in the database and what is in the request.form collection.
I'm looking for a script that will call up the date and time on the server. The scripts I've gotten so far seem to use my computers time and date If I change them on my pc they will change allong.how to call up the servers time and date, if possible.
I have a problem with getting a redirect to work on our server.
It's worked fine on our server for months, but suddenly won't work and I can't figure out why.
codewise, It's nothing special:
Response.Redirect("indexThankYou.htm");
instead of redirecting the browser to this page, an JavaScript-alert-style message comes up with the text:
Cannot Find 'file://E:wwwrootmdc00152-learnproengine2_00index.htm'. Make sure the path or Internet address is correct.
(No page exists, nor was there ever any mention of it in the code)
I've examined the output with fiddler to find:
<html><head><title>Object moved</title></head><body> <h2>Object moved to <a href='E:wwwrootmdc00152-learnProEnginev2_00index.htm'>here</a>.</h2></body></html>
I've checked that the aspnet client folder, and it's there and loads with a code 200 (from fiddler)
Has anyone any ideas why this might have suddenly stopped working? Does this sound like a cache-ing problem? The code has worked fine previously.
On my WinXP machine, with both IE6 and Firefox 1.0, response.redirect and server.transfer take about a minute. But on my WinNT machine with IE5.5, it works instantly. What's going on?
I now know how to call up the server time and date, but can this also be done for just the hours, minutes, seconds, weekdays, year, month, days. Each of the individually.
I'm looking for the server numbers not the ones from the users pc.
suggest the correct way to store the date & time in SQL Server? I want to store the date and time a record was created. What should the field type be in SQL Server? How can I insert the current date/time into the table using SQL? I used to have date/time field type in access and use the following code
My website is currently made up of HTML pages and residing on a Windows server.
Currently converting them all to ASP, that is going from .html extensions to .asp (besides adding funking asp functions)
My pages have all being indexed by Google, so wouldn't risk loosing good ranking with Javascript redirects, so I tought using this would solve the issue, for example, on a file named thatpage.html
<SCRIPT LANGUAGE="VBSCRIPT" runat="server"> Response.Status="301 Moved Permanently" Response.AddHeader "Location", "http://www.mywebsite.com/thatpage.asp"
</SCRIPT> Wherever where I insert it, in the head, in the body, before the DOC, it's not working, will have to resort to javascript? Will I have to put a link in the html page leading to the asp page? Wouldn't like to have user click agin to be led to the .asp version?
I've been using SSIs for a while now. I'm now using them in a menu system. I'm trying to use multiple SSIs, that is SSIs within SSIs, but I'm just wondering if this will slow the pages down, and put too much strain on the server. I'll try to illustrate what I'm doing.
This is a dropdown menu system. Rolling over Link1 will reveal Link1-a, Link1-b and Link1-c, and likewise with Link2 and Link3: Code:
My server hangs for a really long time after I run the following code...
It is to serve up 3 types of files: a picture, a word document, and an mp3 file from a directory "/uploads" that is not accessible through the URL. The script works perfectly for the picture and doc file, but nothing loads when it is used for the audio files. The files are a few megs large, but after I run it I can't access ANYTHING on the site for quite some time.
What's wrong? Is it something wrong with M@rco's script? Did I impliment it wrong?
I don't mind if it simply takes a long time for it to load the audio file, but it is killing the entire server it seems like. Code:
When we want to get data access, we need to specify the datasource name and table name in ASP page. I want to know if we can get the list of databases and tables of SQL Server at run time? i.e. The user can choose the database or table to open, and get the records of the table?
I have a chunk of code, where based on the user's selections, it goes through a database and selects all of the records from the database and writes them to a text file (the database contains nearly 600,000 records), currently, the file is written and the user would end up having to wait for it to be written, before continuing.
Is there a way that this file could be kind of.... tagged or something, so that the server creates it in the background, instead of while the user waits, so the user can continue doing other things, rather then having to wait for the text file to be created.
The files can be quite large, as they can end up being anywhere from 1 - about 600,000 records with between 4 - 10 fields each. Here is a sample of the code that creates the text file. Code: