|
| |
|
|
mrjoe
Posts: 79 From: None Status: offline
|
What is wrong with this statement? - 9/26/2001 20:48:00
Hi,Can anyone help please? I am trying to use the following: tempID="<a "http://record_edit.asp?ID=" tempID=tempID & rstemp("UniqueID") & "" tempID=tempID & "</a>" To build this statement below using response.write where rstemp is a record source: <a href="http://record_edit.asp?ID=7"></a> But I am gettting confused with all the quotes. Thanks, Joe C.
|
|
|
|
ginnie
Posts: 527 From: St. Louis MO USA Status: offline
|
RE: What is wrong with this statement? - 9/26/2001 23:24:00
Try this:tempID="<a href='http://record_edit.asp?ID=" tempID=tempID & rstemp("UniqueID") & "'>" tempID=tempID & rstemp("UniqueID") & "</a>" That should ultimately come out to: <a href='http://record_edit.asp?ID=7'>7</a> Of course maybe you'd rather use something other than the UniqueID to display as the link ... like maybe rstemp("ProductName") or the like. Are we having fun yet?  [This message has been edited by ginnie (edited 09-26-2001).]
|
|
|
|
Mojo
Posts: 2472 From: Chicago Status: offline
|
RE: What is wrong with this statement? - 9/26/2001 23:26:00
In your first line you left out the href part: tempID="<a "http://record_edit.asp?ID=" Besides that, it may be better to do it like this: tempID = "<a href=http://record_edit.asp?ID=" &rstemp("UniqueID") &">YOUR LINK</a>" Then you could print tempID anywhere on your page. Joe Whoops! ginnie you got me typing! 
[This message has been edited by jbennett (edited 09-26-2001).]
|
|
|
|
ginnie
Posts: 527 From: St. Louis MO USA Status: offline
|
RE: What is wrong with this statement? - 9/26/2001 23:38:00
Hey Joe,It probably pays to type slower . . . then we wouldn't have to go back and edit our messages.  ginnie
|
|
|
|
mrjoe
Posts: 79 From: None Status: offline
|
RE: What is wrong with this statement? - 9/26/2001 23:47:00
Thank you so much,It is clear now where I was going wrong and I like your way so much better.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|