joeybagadonutz Posted December 18, 2003 Posted December 18, 2003 Hi, This works in c#: if(Session["UserID"] == null) { Response.Redirect("login.aspx"); } } ------------------------------------------ What is the vb equivalent? If Session("svVID")=NULL Then Response.Redirect("partnerslogin.aspx") End If Does not work, how can I do this? thanks Quote
bungpeng Posted December 18, 2003 Posted December 18, 2003 This is ASP.NET question right? If Session("svVID") is nothing Then .... End If Quote
Muhad Posted December 18, 2003 Posted December 18, 2003 I used If IsNothing(Session.Item("tttLoginStatus")) Then Quote
joeybagadonutz Posted December 18, 2003 Author Posted December 18, 2003 Hi thanks, this is what i was looking for. And yes I am using this code for the code behind of an .aspx page, so I guess it falls under the realm of asp.net? :) thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.