Hi Experts out there,
I am new at web parts.
Actually my requirement is that i have to make a Declarative Catalog Part based on user roles and from the code behind.
Now i am using WebPartsListUserControlPath property of Declarative Catalog Zone to direct to a user contol.In that user control i am adding all the controls that are needed for my Declarative Catalog Zone.Like this
protected void Page_Load(object sender, EventArgs e)
{
}public override bool HasControls()
{
return true;
}
protected override ControlCollection CreateControlCollection()
{
ControlCollection controls = new ControlCollection(this);
Control x = LoadControl("~/webparts/DeliverableSummaryPortlet.ascx");
x.ID = "DeliverableSummaryPortlet";
controls.Add(x);
return controls;
}
Now it is working fine but the problem i ma facing is that i cannot generate the Title for the Catalog Part in the Declarative Zone.When the page is rendered i am getting the title as Untitled.Can anyone Plz solve my problem.It's really urgent.