HI,
I've working from a custom design for a registration form, and modifying the CreateUserStep template accordingly. This is great and it all works except for the default control thats adds a table around the whole thing.
Does anyone know of a rendering method that removes this table, I've tried one (this is in the MembershipRequestControl.cs):
protected override void Render(HtmlTextWriter writer) { if (CreateUserStep.ContentTemplate != null && this.ActiveStep == this.CreateUserStep) { WebControl creatediv = new WebControl(HtmlTextWriterTag.Div); creatediv.CssClass = this.CssClass; CreateUserStep.ContentTemplate.InstantiateIn(creatediv); //Clears table CreateUserStep.ContentTemplateContainer.Controls.Clear(); // Adds the contenttemplate CreateUserStep.ContentTemplateContainer.Controls.Add(creatediv); creatediv.RenderControl(writer); if (CreateUserStep.CustomNavigationTemplate != null) { WebControl navdiv = new WebControl(HtmlTextWriterTag.Div); navdiv.CssClass = this.CssClass; CreateUserStep.CustomNavigationTemplate.InstantiateIn(navdiv); CreateUserStep.CustomNavigationTemplateContainer.Controls.Clear(); CreateUserStep.CustomNavigationTemplateContainer.Controls.Add(navdiv); navdiv.RenderControl(writer); } } }
This works in removing the table but unfortunately, the TemplateHelper in MembershipWebPart.cs then struggles to find the Controls to set them. So although all labels, etc. are rendered, it doesn't setText, etc onto them.
Any ideas?
Thanks in advance,
Bav