I know this is fairly trivial and i know there are several ways of doing it but i was wondering whats the most appropriate way to do this:
I have a set of links of different sports Football Basketball and Tennis, they all link to a Sports.aspx page.
On the Sports.aspx page I need whatever link was clicked to be the title of the page.
The title will be a label.
The name of the hyperlink is obviously stored under link.Text
Now, i know this can be done with query strings yet couldnt a user just change the url and then it would break?
whats the best way to do this?
Also am i right in saying if i made it some sort of session there would be wierd behaviour if the Sports.aspx link was sent to someone else, and therefore a querystring would be the best idea since it would link to say football correctly?
ps i have no idea how to do a querystring
I have a set of links of different sports Football Basketball and Tennis, they all link to a Sports.aspx page.
On the Sports.aspx page I need whatever link was clicked to be the title of the page.
The title will be a label.
The name of the hyperlink is obviously stored under link.Text
Now, i know this can be done with query strings yet couldnt a user just change the url and then it would break?
whats the best way to do this?
Also am i right in saying if i made it some sort of session there would be wierd behaviour if the Sports.aspx link was sent to someone else, and therefore a querystring would be the best idea since it would link to say football correctly?
ps i have no idea how to do a querystring
Comment