Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. repeater in c#

repeater in c#

Scheduled Pinned Locked Moved C#
csharpsysadmindebuggingquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ptvce
    wrote on last edited by
    #1

    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?

    S 1 Reply Last reply
    0
    • P ptvce

      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?

      S Offline
      S Offline
      Simon_Whale
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups