How to bind dropdownlist which is inside repeater?

On your Repeater ItemDatabound event do if (e.Item. ItemType == ListItemType. Item || e.Item.

ItemType == ListItemType. AlternatingItem) { ((DropDownList)e.Item. FindControl("drp_CompPropAddress")).

DataSource =(DataRowView) e.Item. DataItem;//Or any other datasource. ((DropDownList)e.Item.

FindControl("drp_CompPropAddress")). DataBind; }.

Use the ItemDataBound event of the Repeater, like this: protected void rep_UnAssignComps_ItemDataBound(object sender, RepeaterItemEventArgs e) { DropDownList selectList = e.Item. FindControl("drp_CompPropAddress") as DropDownList; if (selectList! = null) { selectList.

DataSource = SomeDataSource(); //your datasource selectList.DataBind(); //selectList. DataTextField = "SomeColumn"; //selectList. DataValueField = "SomeID"; } } Also remember to set the DataTextField and DataValueField properties, either in the markup or in the ItemDataBound event.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions