i want to set the attribute of my properties and my usercontrol class.
i want to set the category of my usercontrol and one of property would not be displayed in property window of usercontrol.
[ToolboxBitmap(typeof(UserControl))]
public partial class QuizControl : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
this.lblCorredtAnswer.Visible = false;
}
[Category("Custom")]
public string Question
{
get
{
return lblQuestion0.Text;
}
set
{
lblQuestion0.Text = value;
}
}
public string Option1
{
get
{
return this.rbxOption1.Text;
}
set
{
this.rbxOption1.Text = value;
}
}
[Category("Custom")]
public string Option2
{
...
Go to the complete details ...