I've used something like this in the past, can't put my finger
on it, tho...
I need to find out the method/keyword for checking to see if a user is
clicking into one webpage from a certain other webpage or url:
hypothetical example:
<%if referringurl = "http://www.yahoo.com" then
I am using ASP to query access db on IIS5 I need to find exact matches for search terms within a string. EG "cat" will find cat but not catastrophe from within a large string. I cannot use "=" as that would match the whole string and I only want to find the exact match within the string. I am trying "like '%[!a-z][search term][!a-z]%'" which is pretty clumsy and also doesn't pick up the search term if it is at the beginning of a sentence. Can anyone help me with the syntax here? I have racked my brains coming up with all sorts of convoluted solutions that all end up having a flaw. I have been looking around ASP fora and it seems a few people are asking the same question but getting no answers. (you might see my question in some of them...) I am sure there must be some operator within sql as there is in FMP but I cannot find it.
how to grab the refering URL of a visitor to my site from another site ( I have tried Request.ServerVariables (HTTP_referer) which returns a blank value, although it seems to work fine for pages within my site).
I have a site that has some pages that have sensitive information. Users must login before viewing them and if they try to view it beforehand, they are bounced to the login page. What I want to do, is point the browser back to the page that sent them to the login page once they successfully logged in.
If I have a session("variable") created in some asp page, Can I refer or use this session("variable") in some pure html pages(containing only javascripts, no asp scripts) ?
In my asp page, I have a drop-down list containing dates and sql query that should display details on the same page depending on the date selection.When the user selects a date from the drop-down list, I need to retrive a selected date(variable) and use it in sql query on the same page.How do I refer a variable on same page?
if there was an easy way to have a form set up so that when the submit button is pressed, it goes to a confirmation page that contains a back button that goes back to the page that called the form.
Basically, I'm looking at a scenario where 10 pages can call the form, but I want to user to be able to click the back button and be returned to the page they were on when they click on the link to the form. I thought that maybe using javascript:history.go(-2) would work, but if the form is reloaded for any reason, gaing back 2 pages goes back to the form.
normally I can redirect to my previous page with referrer. is it possible to go one more previous page is in java script. I mean like,history.go(-1), history.go(-2), etc.
I want to have a series of links (flags for Italian, English, and German) on the top of every page, each of which when clicked will go to a script and change a session variable called language to the respective language. Once the session variable is changed, I want to send them right back to where they came from.
So, if they enter a page on the site that is optimized for "Local Area" and it is in English, IF they click German or Italian it will go to the script, redirect back to "Local Area" with the Session var being set appropriately.
Keep in mind though that I need to be conscientous of SEO, so I want to keep querystrings to a minimum. Ideally, what it would look like is this AFTER the redirect:
Does anyone know how to hide and show a link depending on the level of the user. Like I want the link to show if the person loging in is an admin, but if the person is a user than I dont want the link to show?
Having a problem getting my asp url to work. Im trying to pass a var and some of them have the & in them. This is breaking my url since it looks for another var with the &. If i put the %26 instead of the & manually it works fine. How do I get that to encode that on the link ?
I know the problem is the data that is in the heading field has & in them. I can not fix that part. Is there a way to force the & in the url to go to %26 ? Code:
To secure files on a site with authentication we have put the attachments in a folder outside the IIS web site like this:
D:Documents<ItemID>filename.doc
where ItemID is a number which we use to check permissions inside our application.
In order to download the file from the site we have made a binary reader component (we could probably use SAFileUp or something instead, but this works) to send the file through an ASP-file:
http://mysite/Docs/ShowDoc.asp?ID=<ItemID>
This works well.
So to my problem: If I right click the link to save the file on my local computer (Save target as), it will save the file properly, but the filename in the Save As-dialog is ShowDoc.asp. I want it to be filename.doc instead. Is it possible?
I've heard that on a Apache web server you can write the link like this:
http://mysite/something/filename.doc?ID=<ItemID>
but then the server knows that it's http://mysite/Docs/ShowDoc.asp?ID=<ItemID> it should load. If this is possible in IIS, the Save As-problem will be solved.
I am not sure where to place the ONCLICK code in the hyperlink as this link is written out via response.write......Its all the " " & ' ' that get me ...
I have a database of literature and I've created a search page that pulls up the records matching the search criteria. However, I'd like to create a link to the article in pdf format, if it exists. I have a field in the database that contains the file name (and path), but not all records have a corresponding pdf file. Code:
I would like to have a link that when clicked, sends info to an ASP page to process, but does not submit the entire page. This way, the user will click on a link and will not be taken to another page, but precessing will occur. This is mainly for a 'Rating' Application. Amazon.com does this and I want to know how they do it. Here is the link to the amazon page (you may need to be logged in) http://www.amazon.com/exec/obidos/t...5480771-6490552.
(1)I posted this in general but didnt get anywhere. Then I recalled seeing something recently on the web on an ASP site but cannot recall where.
(2)I have a list of pdf files avaiable for the user to view. When they click the pdf link, the pdf file opens. How can I make the link be a 'save' link? ie, when they click the link, windows treats it as a file to 'save as' etc...
What I vaguely recall on the ASP site was: 'How to hide the path of a download file by using an ASP redirect page'. I was wondering if anyone knows this method, and if they do, would it solve my problem in (2)
I would like to put a picture on may page and I would like to use this picture as a button to execute an sql query, so when you clik on the picture you will hace displayed in the next page the product in the data base and other info like price for example. I have this code to access the data base but I do not know how to use a picture s a buton to use it. Code:
and my link is <A href='register.asp?ret_page=<% =request("ret_page") %>
But the ret_page appears as /vfolder/Content.asp?ContentID=700. How would I get rid of the /vfolder/ and just have the content.asp?contentID=700 alone.
I am trying to create a link that takes a record ID and opens up a PDF file that is associated with the record ID in the database. The following code works
If you have a webpage with frames, say a footer frame that contains links, how can you get out of the frame if you click on a link in the footer. The it works now, is if I click on a link, the page loads inside the small footer frame. I'd like it to just get rid of the frames completely when I clickon the link. Any clue?
Example, Firstly go to http://www.koolgift.com/index.asp, Select Products button... Choose "Apparels & Towels, Caps & Hats"... then choose "5 & 7panel caps & winter caps"... when you scroll down, you will see the Back link button.. when u click on it..it actually link you back to the previous page... however i will like to link it back to the page where the list of products under "Apparels & Towels, Caps & Hats" is...
this is my current coding for the Back link <td width="766" valign="middle" align="right"> <a href="#" onClick=javascript:history.back(1)> <p align="right"><font color="#FFFFFF">Back</font></a>
How would you go about creating a link on a desktop through an asp page. You know the old trick click here to bookmark this page?. I need to take that a step further, i need a link that when clicked it creates a link on the desktop to that page.