I have an ASP page which has this script at the top of the page:
Which means the page needs a value in the session variable "username" else it would redirect to the "notification.asp" page. This works perfectly when I click on hyperlinks that points to the above page. But if I click on a button instead of a hyperlink then the session does not work. Any idea why?Code:<% if session("username") = "" then response.redirect "notification.asp?error=notloggedin" end if %>
Code for Button:
Code:<input type="button" value="Back To Home" OnClick="location.href='add-contact.asp';">
Thanx


Reply With Quote
Bookmarks