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
ADVERTISEMENT
May i get the physical path of any page hosted on other server?
View Replies
View Related
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
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
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
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
View Related
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
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
I'm trying to use the following code to pull data from a CSV file on another server: Code:
View Replies
View Related
Well, it was my experience that the generated stuff didn't work, but I didn't want to make a definitive statement and have someone more knowledgeable come through and tell me how wrong I was.
So now I'll agree: DON'T use Word to generage your code. It is a very bad idea, and for what (it looks like) you're trying to do, it is so easy that writing it in notepad would only take a few minutes, and be much nicer.
View Replies
View Related
Are there any way that I can display the current page's path in the browser's address bar?When I use frames the path dont display in the bar anymore.
View Replies
View Related
Is there an easy way to find out the path of the current asp page? When looking at http://localhost/images/listing.asp I want to be able to extract "http://localhost/"
View Replies
View Related
Is there a way to determine the filepath of an ASP script being executed, like so? First file contains:
<%
For Each x In arrNuggets
Server.Execute "/nuggets/" & x & "/default.asp"
Next
%>
The executed file, default.asp, needs to be able to figure out what it's parent folder name is.
Request.ServerVariables("SCRIPT_NAME") only returns the name of the first initial page loaded, and nothing about the page currently being executed.
View Replies
View Related
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
How do you make the following skip the first field?
Code:
<%for each x in rs.Fields%>
View Replies
View Related
I want to skip an item in a loop, and go to the next item, e.g
[vbs]
For Each bla In ble
If bla = "skip" Then
'Skip to next item
End If
Next
[/vbs]
Is this possible, and if so, could you show me how?
View Replies
View Related
How do you make the following skip the first field? Code:
<%for each x in rs.Fields%>
View Replies
View Related
i have a recordset in a results page
this retrieves all records but i only show the first 6 with all details (using a repeat region)
then i want to follow this with just thumbnails of the additional results
- this repeat region uses the horozontal looper
Either i need this second repeat region to start at number 7
or i need another recordset but with sql to ignore the first 6
(database is access)
can anyone offer any guidance on either solution?
View Replies
View Related
I searched an issue on the net and in our forum but could not find any solution. My question is :
How to skip some block of code while programming in asp page so that I get the necessary part of page only???
View Replies
View Related
I'm using ASP FormMail to collect user info, but now I'm trying to figure out how to modify the code so that any blank fields from the form will not be displayed on the confirmation page/email. I tried to modify the code below in bold, but it gave me a syntax error. Code:
View Replies
View Related
whenever i fetch any numeric value, having a zero at the end, e.g. 32080, from a database with a recordset object, i find that the value becomes stripped of the last zero, i.e. it becomes 3208.
View Replies
View Related
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
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
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
In asp how How can i pass a parameter value with a space in the value like this:
test.asp?catalog=aValue&lineitem=ladies cloths
I get a %20 as a space in the browser window,
View Replies
View Related
how to make a site search. I want to search all the pages on my site for a specific word. For example i would like to know what pages whose bodies contain the word "help".
View Replies
View Related
I have a page that pulls data from a database, one of the fields is Notetext
which frequently contains an email. I then want to pass this onto another
page, that updates the email field in another database, so in page 1:
strNote = rsnotes("NOTETEXT")
And to pass to the next page:
<a
href="createemail.asp?strIssueNo=<%=zero(rsnotes.fields(0))%>&strNote=<%=str
Note%>"><img src="Images/createemail.gif" width="75" height="25"></a>
It all works fine except that only about half the email gets copied into the
other database. It's not an issue with the database as it can take that
length of characters.
So my question, Is there a limit to the number of charachters you can pass
from one page to another in a string? and if so is there any way of
increasing this or getting around it?
View Replies
View Related
I have a problem utilising my connection string to open more than one recordset in one ASP page.
The following code runs absolutley fine on a server running ASP 3, but falls over when run on a server running ASP 2 (the error says:
Microsoft JET Database Engine error '80004005'
Could not use ''; file already in use.
The code I am trying to run is: Code:
View Replies
View Related
I wish to catch the output of an asp page after it is executed into a
string I.e.
Dim htmlOutput
htmlOutput = someobject.execute("nameoffile.asp")
View Replies
View Related
I have the following test.asp page which needs one parameter querystr
but my querystr is a very long string value. When I send a long value
the query string is getting truncated after some characters.
Can you please kindly share the code segment to workaround how to pass
such a long string value to a asp page. This is how I invoke the test
page:
http://localhost/?querystr=select ............ from xxxxx
'test.asp
<html>
<body>
<%
response.write("Hello World!")
w=request.querystring("querystr")
response.write "<td><p></td>" & w
%>
</body>
</html>
but part of my query string never gets passed to the asp page appears
asp as a limitation on max string length can you please provide me a
workaround how I can overcome and pass the right string to asp.
View Replies
View Related
I'm developing an Asp.NET system to take a CSV file uploaded via the web, parse it, and insert the values into an SQL database. My sticking point comes when I try to split() the string returned by readline() on the file.
The following code snippet works for me:
tokens = "one,two,three,four".Split(",")
for each token in tokens
response.write("<td>"+token+"</td>")
next
However, if I take the next line in the CSV, read using StreamReader.ReadLine on the PostedFile.InputStream, I receive "Object reference not set to an instance of an object." which I have narrowed down to be my string holding the line. Further investigation reveals that no other string member functions work on my line (.ToCharArray, .ToString, etc).
I suspect that StreamReader.ReadLine is not correctly returning a string, even though Response.Write(line) displays what I would expect .....
View Replies
View Related
help on the correct "url" or path of pictureds to be appended in the database
View Replies
View Related
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