I must be doing something wrong with this statement
session("variable") = ""
and
if session("varialbe") <> "" then
.
.
.
end if
is this valid in asp.net? What is the best way to do this in asp.net?Do you mean "something wrong" other than spelling the variable name differently when you retrieve it than when you set it?
Typically, session variables are returned as just a generic object, so to get back a string you'd do something like
If Session("variable").ToString = "" then
haha my bad, i spelled that wrong. .. thanks for the reply i'll try that out..
0 comments:
Post a Comment