Created
February 15, 2012 14:32
-
-
Save ChrisMoney/20259c9cbdb125894af7 to your computer and use it in GitHub Desktop.
C# --Checks a repeater for a null database object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class Test | |
//Object parameter always refers to a database item | |
//newspic is a database column | |
{ | |
public static void Main() | |
{ | |
checkImage(object newspic) | |
object | |
string | |
if (newspic = null) | |
{ | |
newspic.visible = false | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment