How To Give Physical Path

Please let me know how to avoid giving physical path & line number in the
error messages of web applications. Instead i would like to replace it with
general error message to the user.

View Replies


ADVERTISEMENT

Physical Path & Virtual Path

I have problem with physical path & virtual path on the server.

<!--#include virtual="country/inc.bottom.asp"-->

In this script it is working.

In all the file i have <!--#include file="../ar-inc.top.asp"--> this script.

I have about 10,000 files in the website.

View Replies View Related

Physical Path To Database

I am getting the following error from the following code:

Server.MapPath(), ASP 0172 (0x80004005)
The Path parameter for the MapPath method must be a virtual path. A physical path was used.

/html/objconn.asp, line 11

The code is as follows....

View Replies View Related

Web Site Physical Path

How can I get the physical path of a web site from an EXE application? The Web Site is on the same server as the application.

View Replies View Related

Virtual Path And Physical Root

Is it possible to include my remote web server path eg: m:/html/root/site1
| m:/html/root/site2 etc

....in virtual includes....

Thus eliminating the need to create duplicate INC files in each sub-domain on my remote web server host domain IP. eg: http://72.3.5.6.0 (www.site1.com; www.site2.com)

I would like to be able to use a UNIVERSAL INC file in the root of my web IP for the benefit of all my sub domains.

View Replies View Related

Skip Out The Name Of The Page From The Physical PATH String ..

If the physical path of a page is : " e:facecgi_bindetails\_Nviews.asp "

and i want to remove "\_Nviews.asp" portion from this path ...means whenever the page refreshes,no matter what the name of the page is ....the last portion of the name of the page with slash must skip out from this path string .....how can i do this while using VBscript Functions.....like using Split(),RIGHT(),LEN(),LEFT()...etc..

View Replies View Related

Physical Path Of Any Page Hosted On Other Server

May i get the physical path of any page hosted on other server?

View Replies View Related

Convert A Physical File Path To A URL For Hypertext Links

I have a Physical path that I need to convert on the FLY I thought using Replace would be a good idea, and it almost works

function MapURL(path)

dim url2
'Convert a physical file path to a URL for hypertext links.
url2 = (path)
MapURL = Replace(url2, "", "/")
MapURL = Replace (url2,"E:","http://myscs/docLibraryDocs")
MapURL = Replace (url2, "IntranetLibrary", "")

end function %>


- Is it possible to have multiple replace on the same variable ?
- am I doing it the right way ? or is it possible to concatenate those replace in one go ?

Is there a limit on how many Replace one can use for one variable ?

The problem I have is that it takes the first two Replace in consideration but not the third one. If I remove or comment the second one then the First and the third one works fine. For some reason, it doesn't like to have the three in the same time.

by the way, the link I try to change is as follow: Code:

View Replies View Related

On IIS 5.1 ASP Pages Give 404 Error

I have been trying to submit a html form to an asp page. This results in 404 error. When i call a separate asp page with just a response.write or with a small text file i/o operation, it works fine.

But when i use a simple htm form with a text box and submit button gives a 404 error. All the pages exists. I use WinXP Pro/IIS 5.1.

Am i missing anything in settings? I tried restarting, reinstalling IIS and updating the patches to the latest but not of much help.

View Replies View Related

Add Str Numbers To Give A Total

tell me the syntax for adding string numbers together to give a total? Code:

strNumber1 = 4
strNumber2 = 2
strTotal = strNumber1 + strNumber2


The above code gives the result 4+2

If I change the strtotal to strNumber1 * strNumber2 it gives the result 8

If I change the strtotal to strNumber1 / strNumber2 it gives the result 2

If I change the strtotal to strNumber1 - strNumber2 it gives the result 2

So what do I use to get it to add the numbers together .

View Replies View Related

Give Dependent Listbox

how to give dependent listboxes in asp code.

View Replies View Related

If Table Doesn't Exist Give A Friendly Message

Just when I thought I was done , I try going to the "myfolder.asp" page and I get an error:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E37)
[MySQL][ODBC 3.51 Driver][mysqld-3.23.55-nt]Table 'streetguide.max' doesn't exist
/streetguide03/members/myfolder.asp, line 73

Line 73 is in red.

This is because the user didn't have a folder created, because they didn't save anything to their folder. On another page I have code that creates a table with the same name as the UserName, only if they decide to save something in their folder. Code:

View Replies View Related

How Can I Give A Nice Print Friendly Feature Through IE For My Website Visitors

I just wanted to know if anyone can tell me how can I give my website visitors the feature of "FRIENDLY PRINTING" through IE. Code:

View Replies View Related

Physical Database

I'm using Crystal Reports 8.0 and Asp. When i try to see my reports it show me an error "Physical Databse Not Found". Whether u run the repprt on server or on clent.

View Replies View Related

Physical Pages Categories

I want to put my existing review books webpage in Asp/Database because I have more than 5000 of them and its now too complicated to keep tracks of it all in HTML only. My database is ready, I know how to connect to it, how to list records and how to select in them, I know how to pass a variable from a page to another, I know how to add, modify and delete records... yeah its about that so far.

Here is how I want my website to look like. I want to have physical pages categories, like all the science fiction books should be listed in sf pages separated alphabetically Ex reviews of Lord of the ring will be in sciencefictionT.asp and so on for each categories. I want too that a page with all the reviews listed linking to the right place. In my database I have already categories for each books.So is it possible to do or I complicate my life too much?

I know that it would be much more easier just to make a review.asp and have the review one at the time there, but I like the way my website is already is, that make it different from others.

View Replies View Related

ASP IIS 5.0 Mapping An FTP Share To The Physical Directory

I've setup several FTP shares on IIS 5, where some of the shares are
located on another computer, while other directories are on the local
computer.

Is there a function similar to server.mappath that I can use to return
the physical path of a FTP virtual directory using ASP?

For example, I have a virtual directory called TestA located at
C:TestA on the local computer running IIS 5. I have another virtual
directory called TestB located at DevserverTestB where Devserver is
another machine on the network.

In my ASP code, I need to be able to access the physical directories
directly and I would like to avoid having additional code to deal with
hard coded directory paths.

Is there something similar to the command server.mappath("TestB") which
would return "DevserverTestB"? This way, the physical path is
transparent and I can treat local and network shares in the same way.

View Replies View Related

Pic Path

help on the correct "url" or path of pictureds to be appended in the database

View Replies View Related

Asp Path

i'm working on uploading images to the webserver.Got a "test" version working, but as soon as i try to modify it.on my server i've got an Upload folder in the same folder as my aspUpload page.the path connection is as follows:Code:

sPath = Server.MapPath(".Uploads") & ""

but now i don't want it saved in the Uploads folder.The folder path i want is ../../../images/models/

how do i modify the above code to this path?

View Replies View Related

DB Path

Main folder is "Web". In the "WEB" folder some asp file resides. another folder named "Admin" also reside in the "WEB" folder. My DB resides in the DB folder that is outside of the "WEB" folder and on the same root where "WEB" folder is.

I have a file named Connect.asp which contains the path for DB. I have included this file in both user files (which are simply in web folder) and in the administrator files. But when the admin tries to log-in the file didn't read the appropriate path as it finds the DB in the WEB folder. But it works fine when i communicate with the DB through user files.

View Replies View Related

Path Error

I want to write logfiles to a textfile. But when the file doesn't exist, then the file should be created. But the code gives an error at this part of the code. I have no idea of what the mistake could be. Here's the code:

View Replies View Related

Get Cookie Path

Is it possible to get the physical path of a cookie? (C:Document and SettingsmyLoginCookies)

Because I need "myLogin" (the Windows Login), and I can't get with request.ServerVariables("logon_user") or ("author_user") or whatever...

View Replies View Related

Cookie.Path

I'm writing an ASP validation script that uses a cookie that is created by a user validation page and has a single value. This site will be used only under Internet Explorer 5 and more recent.

My problem is that the page called after the cookie creation can't read the cookie unless I set the Cookie.Path attribute to "". All the documentation that I found about it is very brief, don't explain how it really works and if there's any kind of "side effects". An even stranger fact is that some people of my team can read the cookie without setting the Cookie.Path attribute.

Can anyone tell me how the Cookie.Path really works or witch browser settings make it needed (or not)?

View Replies View Related

Mapping Path In Asp

I have created my asp pages in "D:/test" . This i have created as a virtual directory.
i am having some files in "D:/download/cont/somename" From the asp page i want to access the files in the d:/download/cont/somename folder. Here somename changes according to username. i.e first i want to check whether this path is valid and then get all the files from it but its giving me the following error

Server.MapPath(), ASP 0174 (0x80004005)
An invalid '/' or '' was found in the Path parameter for the MapPath method.
/test/contractsfile.asp, line 11

code:
somename = Request.cookies("username")
source = ".. est" & "/download/cont/" & somename
if fs.folderexists(server.MapPath(source)) ---------------------------> line 11

View Replies View Related

ASP Uploader Path

I'm developing an asp uploader to upload word documents, but having problems getting it to upload, I think it may be a path problem.

Here's the code:

<%
Dim rs_upload
Dim rs_upload_numRows
Set rs_upload = Server.CreateObject("ADODB.Recordset")
rs_upload.ActiveConnection = MM_conn_watershed_STRING
rs_upload.Source = "SELECT * FROM tbl_upload"
rs_upload.CursorType = 0
rs_upload.CursorLocation = 2
rs_upload.LockType = 1
rs_upload.Open()
rs_upload_numRows = 0
%>....

View Replies View Related

Path Variable

I'm trying to concatenate a path of Application("WebSiteFullPath") which
equals http://www.mywebsite.com/ and an image file like CODE below. My
problem is the full path listing in RESULTS below adds an extra " quote and
obviously breaks the path to the image. How can I script the quotes to not
add the extra double quote between my website path variable and my image
path?CODE:

Response.Write "<img border=""0"" src=""" &
Application("WebSiteFullPath") & """images/edit.gif"" width=""15""
height=""15"">

RESULTS
<img border="0" src="http://www.mywebsite.com/"images/edit.gif" width="15"
height="15">

View Replies View Related

ASP Uploader Path

I'm developing a content management system that uses a file uploader. The uploader works fine and uploads the file when using a mac computer, but doesn't upload the file when using a PC. I am thinking this is a path issue??

Here's the path in the uploader script:

File.SaveToDisk "D:/virtuals/cwh/victorbernard/restigoucheriverwatershed_ca/web/download/"

View Replies View Related

Could Not Find Path

if i use the physical path where the database is located then my code works fine
such as ("e:folderabc.mdb")

but when i use the server.mappath("abc.mdb") , i get error

View Replies View Related

Missing Path

My error is as follows:

Server.MapPath()error 'ASP 0171 : 80004005'

Missing Path

/raven/aspBoardFunctions.asp, line 19 The Path parameter must be specified for the MapPath method. Code:

View Replies View Related

Download Path

While my wwwroot is under C:inetput, how can I make URL pointing to the
downloadable files on D:downloadmyfile?
Do I have to use download COM? If yes, which one is recommended for free?

View Replies View Related

Variable = To Path

I want to create a temperorary variable that is equal to a path that contains two
temporary variables fldr1 and fldr2. I can't seem to encode this...

Here is some of my code below:

Dim TempPath

Set TempPath = ("" & fldr1 & "" & fldr2 & " ")

Dim RequestFolder
Set RequestFolder = fso.GetFolder(Server.MapPath(TempPath))

View Replies View Related

Folder Path

im having a problem with folder path in include files. I have a solution, but there must be a way better one. The problem is when i have an include file... menu.inc in my root directory root/. This menu.inc references images in the root/images/ folder.
I also have an articles folder root/articles/. The menu.inc is included in files in the articles folder, however this messes up the image paths and files in the articles folder are looking for the images in root/articles/images/.
to combat this, in front of every image reference in my menu.inc file, i have a variable <%= pathVar %>. At the top of every file in the articles folder, i have the command <% pathVar = "../" %>. this will insert a ../ before the images folder in the reference therfore correcting the image reference. In the root folder I use <% pathVar = "" %> , so the <%= pathVar %> amounts to nothing leaving the paths correct.
This works, however means having to switch from HTML to ASP mode for every image in the include file, which is not efficient. Is there a better way around the path problem.

View Replies View Related

Database Path

if you need to place the path to your database, what path do you place when you are having you site hosted by a web hosting company. For example my database is in a folder called "db" and its called "company.mdb"

the path I'm using is: "Data Source=c:dbcompanx.mdb"

but I keep getting a "database can't be found error" what path am I to assume they used. I mean its probably not a "C" drive so what do I place? I tried it without placing the drive but it doesn't work it seems to want only the direct path.

View Replies View Related

Absolute Path

Why it is that to saVE a file an absolute path is required and to read a file or pic an relative path is required.can any one ellaborate it and also diff between relative and absolute path

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved