Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 09, 2008 08:49 AM by Erwin21
Member
283 Points
173 Posts
Oct 09, 2008 04:31 AM|LINK
Hi
I am migrating from PHP to ASP.NET
What is the alternative os php isset() in asp.net (C#)
thanks
alternative for php isset()
Contributor
2166 Points
354 Posts
Oct 09, 2008 08:49 AM|LINK
Something like this:
if(obj != null) { // Is set } else { // Isn't set }
Or in case of a string you can use this:
if(!String.IsNullOrEmpty(myString)) { // Is set } else { // Isn't set }
abidshahzad
Member
283 Points
173 Posts
alternative for php isset()
Oct 09, 2008 04:31 AM|LINK
Hi
I am migrating from PHP to ASP.NET
What is the alternative os php isset() in asp.net (C#)
thanks
alternative for php isset()
Freelance Web Developer & SEO
Erwin21
Contributor
2166 Points
354 Posts
Re: alternative for php isset()
Oct 09, 2008 08:49 AM|LINK
Something like this:
if(obj != null) { // Is set } else { // Isn't set }