Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
EnsureChildControls() in sharepoint in Introduction-Custom web parts of Microsoft sharepoint
2105 Views
EnsureChildControls() 
This function is used to trigger the CreateChildControls(). Normally we trigger the CreateChildControls() before render the webpart controls.
Example
	protected override void Render(HtmlTextWriter writer)//this function used to render the controls
	{
	EnsureChildControls();//trigger the CreateChildControl function.
	lblSearch.RenderControl(writer);//render the label control
	txtSearch.RenderControl(writer);//render the textbox control
	btnSearch.RenderControl(writer);//render the button control
	}
Next
Best Lessons of "Microsoft sharepoint"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details