Passing Variables in a Hyperlink - 3/20/2001 20:00:00
Hi Folks, I'm having a problem passing a variable. In the first link below I am setting the value of Ctr and requerying the same page. It works but not the way I think it should. Here is what it is doing...I have an If statement that checks to see if ctr is null if it is it executes one query if not it executes another. Well when I click on the link it loops through my code twice the first time it says ctr is null(even though I given it a value in the link) and then it loops through again for some reason and the value of ctr is there. Weird but at least this one is giving me the results I want. But the second link is passing the value of JobNo to another page and you can see the value of jobno if you hold the curser over the link but it never makes it to the next page. Anybody have any ideas? I've been messing around with this all morning. If you need to see more code I can post it. Thanks, EE
<A onclick="parent.frames[2].location='accounts.asp'; parent.frames[0].location='header.asp'<%session("T")= "Accounts Listing by Contractor"%>;" href="accounts.asp?Ctr=<%=accounts.fields.getvalue("Contractor_ID")%>"><%=Accounts.fields.getValue("CtrName")%></A></td>
RE: Passing Variables in a Hyperlink - 3/20/2001 20:29:00
Never mind I figured out what my problem was. Does anybody else find that the minute you open your mouth and ask a stupid question that the answer just comes to you? Thanks anyway. EE