Set A Text Link

I have a site runing with various different sessions. I want to set a link so users can end one of the sessions but not all sessions.Ive tried

Session("session1").Abandon()
Session.Contents.Remove("session1")()

and didnt work.is this possible?

View Replies


ADVERTISEMENT

Select Queries With Just A Text Link

I have 2 queries on one asp page, usually I only run query 1 as default, But I hope there is a text link called "Run query 2" and when I click it, my asp file will run query 2.

View Replies View Related

Link Text To Popup New Window

i am linking the text to a new fresh page by a popup. however, when i take away the <a></a> tag, when i move myu mouse over, it does not have the effect. but when i set the href to --> href="#", it pop out 2 windows. How can i solved the prob? I just need to link the text to a new fresh pop out when on click.

function popup(url)
{
newwindow=window.open(url,'name','resizable=yes,sc rollbars=yes');
if (window.focus) {newwindow.focus()}
return false;
}

<a href="#" onClick="popup('search_coyfrm.asp')">Search Company</a>

View Replies View Related

Use Text File As Link Source

can i get an example of how to read values from a text file that will be used as links on my page. i'll have a .cvs file ala:

LINK ASP_PAGE
"click me1", "clickme1.asp"
"click me2", "clickme2.asp"
"click me3", "clickme3.asp"

i think i can figure out how to do the read, but need to know how to get it on the page where i need it.

View Replies View Related

Text Box Hyper Link To Frame

I have a text box in frame one that the user will enter a 4 to 8 digit number and tab over to text box two to enter a qty they want to order.

BUT after they tab out of the first text box I want to display in the second frame the results of that number from the first text box - weather its valid with discription or invalid number.

1. I have created a database with the inventory #'s with discription.
Current link will display number and product code /framequickpadinfo.asp?pass=0401
/framequickpadinfo.asp?pass=4160017
and so on. That part works fine.

I just need to know how to link that text box in frame 1 over to page (framequickpadinfo.asp) in frame two..

View Replies View Related

Button Appears As Text Instead Of Link

I have copied the code below from elsewhere on the web in order to create a form that will allow users to upload pictures to my server.

First obstacle i'm encountering is that the 'upload' button doesn't appear as a link but rather as text. I'm VERY new to .asp so hopefully somebody will see a minor error and explain how to fix it. Code:

View Replies View Related

Controlling Text In A Text Area Or Text

I have this problem in controlling a the text in a Text Area. How can I do
that for example the field size is 200, when it reaches 50 it automatically
goes to the next line. Bcoz im having problem when viewing it in my report,
it continuesly views in a strieght line and im having problem in printing.

View Replies View Related

International Text And FSO Created Text Files

When using ASP's FileSystemObject to create text files, I am unable to get user submitted text (in Hebrew) to save as anything other than "?????". The text file is being saved in Unicode and setting the CodePage in ASP proved unsuccessful. Strangely, hard coded Hebrew text in an ASP variable does add to the text file correctly.

Any ideas of why this happens and how to get it to work correctly?

View Replies View Related

Text Area Limited Text

I have a text area which I want to limit the number of words or number of text entered into it. Is this possible?

<textarea name="textarea" cols="35" rows="5"></textarea>

In the text area above, can I say limit the person filling in the text area to say 100 characters?

View Replies View Related

Text Box In Form Cutting Text

I have a form on asp page that pulls info from a DB when the page loads.
It them puts the info into text boxes on the page that are editable by the
user.

The only problem I have is say in the description text box it should
read "HP Laserjet 5Si" , it always cuts the text off where it just says "HP"
.. It does this on all the text boxes? I can't seem to figure out why it
is doing it. Here is the sample code:

With quotes around <%= vdesc%>

<td><input name="desc" type="text" id="desc" size="45" value="<%=
vdesc%>"></td>

And I tried it without.

View Replies View Related

Regular Expression Of Text OR Text OR Etc...

I have text in a field coming from a database. The text has various
forms such as:

text1
text1 or text2
text1 or text2 or text3
text1; or text2
text1; or text2; or text3
etc...

how can I parse this with a reg ex? I tried this:

(.+);? or

but it only captures 1 submatch (text1) and only if theres an "or"
after it

I'd like to get 1 submatch for each piece of text separated by the
"or", just the text itself if there is no or.

Anyone know how to do it?

View Replies View Related

Controlling Text In A Text Area

I have this problem in controlling a text in a Text Area. How can I do that, for example the field size is 200, when it reaches 50 it automatically goes to the next line. Because im having problem when viewing text in my report, it continuesly views in a straight line. Can you give me ASP code for that.

View Replies View Related

Hover Over Text To Bring Up Text

I have text - ARI Promise, when I hover over the text I would like a box to appear with the Promise information. It would be several paragraphs that need to be formatted with paragraph and bullets. Is this possible to do? If so how would I go about it?

View Replies View Related

Link In Asp

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?

View Replies View Related

Link / Url In A Var

How to get a link / url in a var ? This is what I need to do :

newmsg = " <a href="http://www.my-url"?pa=<%=userid%>> Click here </a> "

View Replies View Related

Link To Exe

Clicking url that points to an exe pops up Open/Save dialog box. But I want
only the Open option to be enabled

View Replies View Related

Css Link

How display a link like a plain text (not underlined) with css code.

View Replies View Related

.asp Url Link

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:

View Replies View Related

Dynamic Link

I would like to build a dynamic link based upon a value returned from a db

There is data in the db because objRS("Description") returns a value.

something like

Code:

if objRS.EOF then
%>
<a href="/somepage.asp?id="<% objRS("Id") %> "><%response.write(objRS("Description"))%></a>
<%
else
end if

I get

http://localhost/somepage.asp?id=

Nothing else at the end.

What am i doing wrong?

View Replies View Related

Link Alias

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.

View Replies View Related

Email To Link

I am using this code

<table border="1">
<%
Do While Not rstSimple.EOF
%>
<tr>
<td><%= rstSimple.Fields("username").Value %></td>
<td><%= rstSimple.Fields("password").Value %></td>
<td><%= rstSimple.Fields("email").Value %></td>
</tr>
<%
rstSimple.MoveNext
Loop
%>
</table>

How can I make the email field a hyper link?

View Replies View Related

ASP Link Query...

I have the following link:

<A HREF=""Schedule.asp?JobNumber=" & RS("JobNumber") & "&PONumber=" &
RS("PONumber") & """>" & RS("JobNumber") ONCLICK= popup() & "</a>


I want the link to reference a function in the <Script> tag as
follows:

<script>

function popup() {
window.open( "Schedule.asp" , ""
,"top=40,left=40,width=200,height=100" ) ;
}

</script>

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 ...

View Replies View Related

Search For Link

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:

<td><a href="<%=(rs.Fields.Item("Article").Value)%>"><%=(rs.Fields.Item("Title").Value)%></a></td>

How do I check whether there is a corresponding pdf file before displaying the title with a link?

View Replies View Related

Href (link)

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.

View Replies View Related

Pdf Link Prob

(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)

View Replies View Related

Image Link

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:

View Replies View Related

Link Transfer

anyone in here got an idea on how i could transfer a value of a form text to another asp page just by using <a href="">

View Replies View Related

Link Read

My hidden field is
Code:

<input type=hidden name="action" value="login">
<input type=hidden name="ret_page" value="<% =request("ret_page") %>">

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.

View Replies View Related

Link To File

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

Response.Write "<a href=""file.asp?ID=" & rs("ID") & """>"
Response.Write rs("File Name") & "</a></td><td>"

I'm trying to rework this code to work a little more easier with Dreamweaver. I would like it to look a little more like this:

"<a href=""file.asp?ID=" & <%=(rsNews.Fields.Item("ID").Value)%> & """>" <%=(rsNews.Fields.Item("File Name").Value) & %>" </a>

I'm receiving a syntax error when I try and run it.

View Replies View Related

How Do I Do A Redirect From An .exe Link?

one of my downloadable programs is redundant but there are still a bunch of
links out there that point to the .exe directly ...

how do I redirect the browser to another url when someone requests the .exe
file?

View Replies View Related

Link Out Of A Frame?

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?

View Replies View Related

Variable In Link

i wrote this:

Code:

response.write "<a href=" & "picture.htm?movie=" & movie & """>"

my variable is
movie="few words like this"
but when i start the page it links only to

Code:

picture.htm?movie=few

and i just dont know why ...

View Replies View Related

Link Problem

I got a problem on how to link my page.

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>

View Replies View Related







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