I have a user control, whose sample code is as below. I would think that the event 'ProductCategorySelected' should be exposed by this user control when it's hosted in a page. But in the page code-behind, the event never shows up in intellisense dropdown for the hosted user control. Am I making some mistake in exposing a event or is there something at play here?
public partial class ProductCategoryTree : System.Web.UI.UserControl
{
public event EventHandler ProductCategorySelected;
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
GenerateTreeView(CategoriesTree);
//this.RadPanelBar1.Items[0].Expanded = false;
}
}
protected void categoriesRadTreeView_NodeClick(o ...
Go to the complete details ...