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?
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.
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 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.
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 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?
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?
but I keep getting a "permission denied" error. If I just put the same address string in IE6's Address box and go to it, IE opens myusername's FTP home page just fine, so I know the FTP site is working as expected. Also, if I put in an anonymous ftp site, without the username and password (e.g. "ftp://ftp.microsoft.com"), the redirect works fine, too.
I don't want the user to be prompted by IE for the username and password at the FTP site, so I am providing them from within the web site.
What can be preventing the response.redirect from handling non-anonymous FTP access? Is there a better way to do this?
I have sql server express at my PC-windows xp professional, I try to connect to a table via asp (queryString :"Driver={SQL Server};" &"Server=localhost;" & _ "Database=local;" & "Uid=nikos;" & "Pwd=nikos;" but there is an error Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC SQL Server Driver][DBNETLIB]"The SQL server does not exist or there is no permission.
I can login with EMS lite both with sql server Auth. and windows auth.What is fault?
I'm trying to install a simple e-mail form to my webpage; which takes some info from user (like name, phone, e-mail,etc...) and when user pushes submit button e-mails them to me immediately. I've tried to do so with ASP Formmail but I couldn't succeed. . it gives me: Server object error " 'ASP 0177 : 800401f3' Server.CreateObject Failed " error. Can anyone please help me to install my form? Because I need to install it immediately;
I need to read a SQL Server table into a Web Page and within the Web Page to permit my users to make changes to the records, delete or add new records and then save the entire contents back to the SQL Server table back.
The functionality I am looking is almost the same as In the SQL Enterprise Manager whereby I can choose a table open the table and then return all rows and I can maintain the same and save it back to the SQL Server table. I want almost a similar web interface to such a functionality.
Even if not a generic functionality as the SQL Enterprise Manager table maintenance appreciate if somebody can share the code with a sample how I can do it in ASP pages + T-SQL if need be.
I have created a form that sends email thru my local server. What I want to do is send the email thru our corporate Exchange server. Does anyone know how I can accomplish this task? Please advise. Thanks.
I'm just about to start a project that needs to combine the results of a SQL Server query with the results of an Index Server query. The basic idea is that the user enters/selects a bunch of search criteria on a form.
Most of the criteria selected by the user will be used to select records from the database - standard WHERE clause stuff - but the user can also enter free-text that should be searched for in associated uploaded documents.
The documents are sitting in the file-system with file-name pointers only stored in the database (not the document). Only records where the associated free-text is found in the documents should be returned. I'm new to Index Server and am wondering how is this done. Any good references/tutes?
I have an application that needs to pull files from an internal server. This is the setup. The web server is external facing, meaning exposed to the internet. I then have a file server that sits inside our domain. I created a COM object that can impersonate a user to retrieve files from that server. However, I cannot get the application to pull files from the internal server.
I first tried a domain account that could reach both servers. This did not work. I then had the network team create the same account on both machines. This is not working either. I can impersonate the user (I am able to get the user/users authenticated), but the script keeps coming back with and access denied. Code:
I'm stumped by one single thing when using Msxml2.ServerXMLHTTP.4.0. I'm sending an XML-formatted text string to a foreign server and getting a response back (using Windows 2000 Server and IIS). The problem is, when they send any special characters in the response string, my application chokes. Code:
When i call logout.asp, it deletes the session etc etc and then redirects to main.asp. main.asp is the main content, which opens in the main frame of the frameset, which is named index.html.
How can i change the redirect.... Code:
Response.Redirect("main.asp")
...so that it loads the full index.html file once again, and not load the index.html frameset into the window.
I was wondering if it is possible to redirect the user to a specific page he/she request without the use of hyperlinks. Im suppose to list all the options in a drop down list and upon selection, say the page is Modified PBT, the user will be able to view that particular page.
is it something like
If Request("Submit")="Submit" then materialType = request.form("MaterialType") if materialType = "ModifiedPBT" then Response.redirect..... ......
How do I redirect a page back to the orginal sending page. I have a script that checks to see if a user is logged in and if he. she isn't then it redirects them to a loging page, one login has been checked and process, how do I redirect them to the original page.
I am working on a form that needs to be submitted to a different server. Apparently some firewalls alert the user that the system is sending data to a different server and this may not be wise. To avoid confusing users I though I could have a simple ASP script on the same server as the html form and it's only purpose would be to send the data to the other server and return a "success" message if it completed properly. I have a deacent understanding of scripting, but using PHP, this will be my first real go with ASP.
I have written an Two ASP pages one is login.asp Another verify.asp
login.asp redirects the page to verify.asp .
The verify.asp has the following code <% Set objCom = Server.CreateObject("AgileAPI.Server") objCom.SetLicenseKey "AFDGHDJLFLFMTTIGMVFK" b = objCom.Connect("agility", 9017, -1) b = objCom.Login(Request.Form("username"), Request.Form("password"), "agility", "D:COM", 9010, 16384)
Response.Write ("Connected to ADV 2006" & b) %> I have registered that dll using regsvr32. But it status bar is see http:localhost estverify.asp and stops there why its not redirecting or displaying the Response.write