//This code block shows how to persist a boolean property value in a web control.
[
Bindable(true),
Category("Behaviour"),
DefaultValue(true),
Description("Show Condition")
]
public bool ShowCondition
{
get
{
bool selval;
if( ViewState["ShowCondition"] == null)
{
selval = true;
}
else
{
selval = (bool) ViewState["ShowCondition"];
}
return(selval);
}
set
{
this.ViewState["ShowCondition"] = value;
}
}
Anto Rocked!
13 years ago
No comments:
Post a Comment