repeater in c#
-
i use OnItemCreated in repeater like :
<asp:Repeater runat="server" ID="DaysRepeater" DataSourceID="ObjDsDaysRepeater" OnItemCreated="DaysRepeater_ItemCreated">
<ItemTemplate>and
protected void DaysRepeater_ItemCreated(object sender, RepeaterItemEventArgs e)
{}
protected void PersonelsRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { DataModel model = new DataModel(); Label label = (Label)((Repeater)sender).Parent.FindControl("lblCurrentDate"); int num = Convert.ToInt32(label.Text); if ((e.Item.ItemType == ListItemType.AlternatingItem) || (e.Item.ItemType == ListItemType.Item)) { DataTable totalIssuancePersonelDataWithID = model.GetTotalIssuancePersonelDataWithID(this._wfItemId); if (totalIssuancePersonelDataWithID != null) { } but in debug none of the function didnt run Does any body know what can i do?
-
i use OnItemCreated in repeater like :
<asp:Repeater runat="server" ID="DaysRepeater" DataSourceID="ObjDsDaysRepeater" OnItemCreated="DaysRepeater_ItemCreated">
<ItemTemplate>and
protected void DaysRepeater_ItemCreated(object sender, RepeaterItemEventArgs e)
{}
protected void PersonelsRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { DataModel model = new DataModel(); Label label = (Label)((Repeater)sender).Parent.FindControl("lblCurrentDate"); int num = Convert.ToInt32(label.Text); if ((e.Item.ItemType == ListItemType.AlternatingItem) || (e.Item.ItemType == ListItemType.Item)) { DataTable totalIssuancePersonelDataWithID = model.GetTotalIssuancePersonelDataWithID(this._wfItemId); if (totalIssuancePersonelDataWithID != null) { } but in debug none of the function didnt run Does any body know what can i do?
As the problem is more ASP.net I would suggest that you put the question in that forum[^]. Also you said that none of the method ran, have you put a breakpoint on the first line of the method and stepped through it?
Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON