How to check null string in java script
-
hi friends i have how to javascript string null value i have get the sessin value in one string variable var ListId='<%=Session["LiatingId"]%>'] if(ListId != ""){ alert('not null')} else alert('null') if the listid is null then also alert('not null ')is executed how to solve this problem Thanks in Advance
-
hi friends i have how to javascript string null value i have get the sessin value in one string variable var ListId='<%=Session["LiatingId"]%>'] if(ListId != ""){ alert('not null')} else alert('null') if the listid is null then also alert('not null ')is executed how to solve this problem Thanks in Advance
What does Viewsource show up? Did you check with length?
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
What does Viewsource show up? Did you check with length?
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
Actually even in C#, the length comparison is considered faster than
string.Empty == strVariable
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
hi friends i have how to javascript string null value i have get the sessin value in one string variable var ListId='<%=Session["LiatingId"]%>'] if(ListId != ""){ alert('not null')} else alert('null') if the listid is null then also alert('not null ')is executed how to solve this problem Thanks in Advance
I've done scripting long back but i think javascript treats null as "null" [string] U need to check these string rather than checking the empty state. Just give a try
--Akki