When using Server.URLEncode, is there a way to undo what was encoded? I suppose I could use REPLACE if I knew exactly what the original string was. But what if I didn't know?
Apt #1 transforms to Apt+%231 how do I get it back to Apt #1 ...?
We are running ASP classic on IIS 5 on W2k SP4. We recently added <% Response.charset="utf-8"%to the top of all our pages (as suggested by validator.w3.org). A problem arose on a page which applies Server.HTMLEncode to a field that was inputted from the user. The problem is that when the user enters a phrase such as:
which doesn't appear correct. When I take out the <% Response.charset="utf-8"%line, it returns
My Fiancé
which displays correctly. Am i ok to just leave out the <% Response.charset="utf-8"%line, or should I use a different charset? or is there some other fix?
I've encountered an issue and I'm not sure what's going on. I've encoded the values in a querystring. When you hover over the link, it doesn't appear to be encoded properly. But if you viewed the source of the page, it's encoded correctly?
wrong: cp=ASF-4204=4PDT
right: cp=ASF%2D4204%3D4PDT
The problem is with the "=" in the first example. Can anyone explain what's going on and how I can fix this?
I have users who upload files using my application using ASPUPLOAD component. My code uploads the file to a network location and once the upload is finish I display the hyperlink using the following code
Sometimes the hyperlinks works but sometimes it doesn't.Should I be using server.urlencode or not. The problem is my users upload files with all sorts of filename slike
088-888 24(05)-774448.doc which includes spaces, special characters etc.
There has to be a simple method for un-encoding output from Server.URLEncode or Server.HTMLEncode using server-side VBScript but I just can't find it. I'd appreciate it very much if some sharp individual here would shove me in the right direction.
I'm trying to pass a URL parameter from one ASP page to a recordset on another (workng with SQL Server). The strings all have three '-', and some additionally have '&'. I used URLEncode, because the strings with '&' don't pass properly, although the others do. However, even with URLEncode, the recordset on the second page still comes up empty - the strings still don't seem to encode. This is
ASP Code: <a href="javascript:popUp('locInfo.asp?locCode=<%=Server.URLEncode(rsHighRating.Fields.Item("locCode").Value)%>')"><%=(rsHighRating.Fields.Item("locCode").Value)%></a>
The recordset on the locInfo.asp page filters by the locCode, it is set up as Request.QueryString, and does indeed work for all the codes without '&'. Can anyone point out where I might be going wrong?
<A href= "GenericUploader.asp?SavePath=<%=server.URLEncode("D:my new web siteU") %>">folder name</A>
the link above does not seem to produce the appropriate query string value upon being clicked on. That is, when an internet user clicks on that link, the Internet Explorer opens the GenericUploader.asp web page, and the code in that asp web page responsible for picking up the value corresponding to the argument 'SavePath' (i.e, request.querystring("SavePath")) returns solely the first word of the value rather than the entire CORERECT value, which is 'D:my'rather than 'D:my new web siteU'.what needs to be done?
The error is: Microsoft VBScript runtime error '800a000d' Type mismatch: 'Server.URLEncode'
It doesn't matter which one I do buy itself, if I do , it works. If I have more than one use of URLEncode, I get the error. Both variables are dimensioned like (dim m1).
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:
I'm incharge of updating the stats on a chl hockey teams Web Site. I would like to know if there is a way to be able to save the content of the CHL Statistics WebPage on our Server and using it to update our Microsoft Access 2000 database.
If it possible, then I would take the content of that page. Execute some code that will take this information an place it in our database on our server. By doing this, our Team WebSite would be update automaticaly at a time that I specify on our server.
At this time, I have to open the CHL Statistics WebPage. Then Save the HTML page as a txt file, upload it on our server via FTP, then execute my my code that places it in our database.
I have a server that we installed a Web Application (ASP) and It works with a few clients that we tested, IE 5.5, and it does not work on the server machine itself. So we've tested a few thing.
Created a simple file with the contents of <html> <body> Hello World </body> </html> Made one with .HTM extension and one with .ASP.
I can see the HTM file from all machines. I can only see the .ASP file on the machine running IE 5.5 The server itself cannot see the .ASP page. We places the files in the root of the server web and in the Application folder with the same results.
Any one has Idea, How to use Server.Transfer and Server.Execute, When I tried to use these methods I got an eror:
Server object error 'ASP 0230 : 80004005' Server.Transfer Error /SISWeb/portal_logon.asp, line 40 The call to Server.Transfer failed while loading the page.
anybody is there who can respond to this problem. Do I need to change any setting at IIS?
How do you use server.mappath to update a access database on a completely different computer? One of my websites needs to update a database on a completely different website. Code:
I've recently uploaded a site to a new ISP, which is on a Win2003 platform. I've had a problem in that the existing ASP scripts handling email form submissions all experience the following error:
Microsoft VBScript runtime error '800a0046' Permission denied
From what I can gather this is due to moving from Win2000 to Win2003, and specifically the problem lies in this line of code: ....
I fire the following code on Index Server (different obj) and it returns a PDFs no problem, but when I change the object to use the MSSearch for Site Server I don't get any PDFs. Anything in the code that would cause this? I can see the PDFs getting crawled in Site Server, but when I try and search I don't get any pdfs .....
Previously I have canvassed a few way to get a registration code from one server to another - checking the results of the search and returning a function in a string tro be executed at the end. Well that worked until one of my beta testers decided that he would fiffle and get around the syste mmm...
i'm using a model, view, control architecture for a group of .asp pages.
i can't decide whether to use Server.Transfer or Server.Execute to pass posted data from my control to my model. are there security implications for using Server.Execute?
just wanting some advice on pros/cons to each of these since this is the first time i'm attempting to use these methods.
I accept a few user inputs and a file from the user, post it to my ASP page. I'm able to receive the data as well as the file properly in Receiver.asp. In my receiver.asp, I need to process the user inputs and subsequently POST this data and the file again to a different server. I would like to use ServerXMLHttp. Now, how do I simulate Form creation in receiver.asp.
I use the following code to post to the second server MyXmlHttp.open "post", myTargetURL,false MyXmlHttp.setRequestHeader "Content-Type", "multipart/form-data"
Now here's where I get stuck.
1) How do I construct the form data? How can I put together the data i received (which is text) as well as the received file (which is Binary) in the same Send statement for the Post? -- I assume that if HTML forms do it in some format, I should be able to simulate the same through ASP, but how???
2) The received file will not be stored anywhere in my server. It has to be forwarded in memory.