On Wed, Jun 2, 2010 at 11:25 AM, julik <[email protected]> wrote:
> Any way to replicate is null functionality using the "="?
> I automatically set values in .NET code and everything is great only I
> can't easily check for nulls b/c I feed variables into
> " where P.ProjectPlatform = " +
> ddlProjectPlatform.SelectedValue.ToString();
>
> Any easy way to check if P.ProjectPlatform is null in the above
> example using the "=" ?
>
------------------

if (ddlProjectPlatform.SelectedValue.ToString() != null)
{
//your code here
}
else
{
// protection code here
}

HTH
-- 
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

Reply via email to