I'm trying to do a javascript postback and then re-direct to a different page but it keeps posting back to the current page
Here's my code
$(this).prepend('<a class="booknow2 sidelink sidelinkNew" href="javascript:__doPostBack(\'SetSess\',\'\')"><img src="../../images1/button/leftEdge.png" width="4" height="35" style="float:left; margin:0; padding:0;" alt="book now" /><img src="../../images1/button/rightEdge.png" width="4" height="35" style="float:right; margin:0; padding:0;" alt="book now" /><span>Check availability »</span></a>');
And here's my SetSess
postback command
Sub SetSess()
Session("TenHolStDateNewCheck") = "%"
response.redirect("searchresults/default.aspx")
End Sub
Anyone got any ideas?
Thanks
Jamie