Click to See Complete Forum and Search --> : Passing variables on a href


ASPSQLVB
12-10-2006, 06:22 PM
Guys,

I would like to pass 3 variables when the DLETE link is clicked. I am able to pass only 2 variables. I am having trouble with the third one. No data at all is being passed and when I hover my mouse of the DELETE LINK it shows only 2 variables also.

I would like to pass the NameofEvent variable also. How should the code look when trying to pass this 3rd variable?


<a href="CarpAnglerDeleteFinal.asp?NewAngler=NewAngler&FishId=<%=RS30("FishId")%>&NameofEvent=<%=NameofEvent%>" onclick="return confirm('Would you like to Delete the Angler?')"><font color="yellow" size="4"><b>Delete Angler</b></font> </a>

chrismartz
12-10-2006, 06:29 PM
You have your link correct. Do you have NameofEvent defined somewhere on the page referring to the database value?

ASPSQLVB
12-10-2006, 06:51 PM
The NameofEvent value is brought in from a Request.Querystring, then stored in the NameofEvent variable. Thats when I try stroing it into the NameofEvent variable on the a href link.

ASPSQLVB
12-10-2006, 06:57 PM
Problem Fixed......the code is correct, I just made a mistake and assigned the wrong a href the NameofEvent value. Thats why I could not pass it to the next page. Silly stuff.