private string _itemId;
[Browsable(true),
Description("Required identifier for the Item.")]
public string ItemId
{
get { return _itemId; }
set
{
if (string.IsNullOrEmpty(_itemId))
{
_itemId = value;
}
}
}
Come potrei effettivamente effettuare quella richiesta quando qualcuno usa il controllo? Sto cercando di trovare un attributo che dice qualcosa come Required (true).Come si specifica un attributo richiesto in un controllo Web .NET personalizzato?