Adding A Path Section To Sqlstring?

I can't work out how to add a path section to a sqlstring, at least i think that what i need to do.

The image url in the database, is set a directory in from where the page sits, and displays for a shop. i.e. images/thumbs/you.gif

However I would like to display this image on the homepage, i.e latest album from the shop, and have had it working but by adding 'store/' to the path in the database i.e. store/images/thumbs/you.gif, obviously problem with this is it knocks out the image in the store.

So therefore I thought ok add the path needed manually to the homepage code, but I don't know how to put it in, or if to put it in the sql statement or add it to the variable where the image appears Code:

View Replies


ADVERTISEMENT

Admin Section

I have an access database on my website.Its tied in to an asp calendar page where people can click on a date and send me an email wanting to book that date. Could i sent a text message from my mobile to add a new date into my access database to book that date instead of having to go onto my admin section and add it in?what i trying to explain. Is this possible or impossible.

View Replies View Related

UnSubscription Section

I have implemented a subscription section which just inserts the fname, lname and email in the database which works fine and in the UnSubscribe section Which i have used the delete statement, but my problem is that i need to know how i can make it so when the subscriber types in the fname, lnam and email all three have to match the database fileds in order to delete. I am using access database.

View Replies View Related

Print Particular Section

i have two layers which i show and hide as per the users requirement...how do i give a link to print the contents of the layer only?

View Replies View Related

Create The 'Help' Section

So I am working with my IT department on a project. They have a large ASP/MSSQL db system for tracking multiple locations/projects, etc. The site has been an internal device for some time. We are trying to massage the system into a product to lease out.

As a results, we are now having to develop manuals for setup, configuration, and most importatly - use. I need to develop a users manual for the system. I can fill in the blanks, but I don't want to make Word documents. I want the help to be online, seearchable, etc.

I'd love to be able to tag sections as being for certain security levels so someone with high security would see ALL the stuff, someone with low security would only see the peices associated with what they have access to, etc. Is there anything out in the ASP (or even PHP) world that does this?

View Replies View Related

Highlight A Section Of Words Only

This code highlights words entirely. I look for the word nation it highlights words like abomination. So I only want the function to highlight whatever I'm looking for. Code:

View Replies View Related

Insert Section Break In RTF

I'm trying to merge two separate RTF files (created in Word) into one Word document. I'd like to put a "next page" section break between each document so that headers and footers can differ between sections. I've got the documents merging, but I can't seem to figure out how to insert the section break. Can anyone help?

View Replies View Related

Create Fixed Section

I am a C#-Coder and now I have the duty to rewrite a ASP-Website and add some functionality. The problem is that I have never seen ASP before and I don't have the time to learn everything necessary to complete my work.

It's a very simple problem and would be really great if someone could tell me what to do or show me a small code-example. I think "learning by reading code" is the best way to get new information

I have an ASP-Website with a very long list (out of a SQL-Query). If I scroll down the page I can't see the list-header any more <- THATs my problem. What I need is an ASP-Website with a fixed section that can't be moved and below a common, scrollable website.
The header of my SQL-Query should be in this fixed section and the datasets should be in the scrollable section.

View Replies View Related

Opening And Closing A Section

I have a question regarding opening and closing a particular section in a web page. I have done that in .net using panels, but, I dont know how to do it in ASP (using VBScripting, JavaScripting).

I have a table with long list of users and every user has some info attached under them. My table looks too long. I wanna give my users a functionality in design so that they can close and open each section. Is there a way to do it in ASP?

View Replies View Related

Member Section Of Website

i need to login to a member section of a website and get authenticate at the index.asp before i can reach tools.asp, another page i will use. I see that the member section do not use cookie. It used session.

I had tried reaching tools.asp directly (with all the variable pass in together in a url example: URL). However, it will redirect me back to index.asp ,asking me to authenticate first. Is there a way to skip index.asp and go directly to tools.asp?

View Replies View Related

Not Showing Newsletter Section If Db Is Empty

I have a newsletter form with 8 article sections. The resulting newsletter displays the sections in a specific format. However, if the user only has 6 articles, how can I prevent section 7 and 8 from being dispalyed as blank sections?

View Replies View Related

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

Redirects To The Right Page Pasing Login Section

On allot of professional web sites, i have notised that When you are looking for something on the site and it needs you to login first
before you can see the content, when you do login it knows exactly where to take you before you loged in, how do they do this???
what type of code do they use??? i would love to apply it to my site.

View Replies View Related

Web Deployment Project, Web.config Section Replacement Is Not Work

While debugging why a web.config section replacement was not happening in the real web application, I tried a simplified case, no replacement is enabled and the connection string is not showing up? Code:

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

Finding A Path

Is there something similar to PHP's php_info command to tell me all about the server? I need to find the actual path where the site resides.

View Replies View Related

Path Parameters

The '..' characters are not allowed in the Path parameter for the MapPath method.
/Connections/connportal.asp, line 30

This is line 30
MM_connDUportal_STRING = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("..\_privateportal.mdb")
%>

View Replies View Related







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