EDIT: I'm trying to set the variable so that when the page (that is loaded when the hyperlink is selected) is brought up, i can use an sql query that selects a record where the name of the cottage is equal to the value of the variable i am trying to set and then display the result on the page. Sorry if i haven't made it very clear, i'm very new to ASP web development.