R
RP
I am using following code to validate the value that is being assigned
via property. But it is not working:
----------------------------------------
public string vProductName
{
get
{
return ProductName;
}
set
{
ProductName = value;
if (ProductName == null)
{ ProductName = "-"; }
}
}
via property. But it is not working:
----------------------------------------
public string vProductName
{
get
{
return ProductName;
}
set
{
ProductName = value;
if (ProductName == null)
{ ProductName = "-"; }
}
}