Write to session on anchor click ASP.NET

apadybeaphy

New Member
I have ASP.NET based site. For example I have two anchors:\[code\]<a id="sortByPopular" runat="server" href="http://stackoverflow.com/questions/12746211/url1">Popular</a><a id="sortByRecent" runat="server" href="http://stackoverflow.com/questions/12746211/url2">Recent</a>\[/code\]At code behind I can build href attributes:\[code\]sortByPopular.Href = http://stackoverflow.com/questions/12746211/BuildURL(POPULAR);sortByRecent.Href = BuildURL(RECENT);\[/code\]And I want to remember, which sort order user is using on listing page. I think there should be the way to create new Session variable when user clicks on link. Could someone help me with this?Thanks in advance.
 
Back
Top