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. Web Development
  3. ASP.NET
  4. create user control or itemtemplate

create user control or itemtemplate

Scheduled Pinned Locked Moved ASP.NET
winformshelpquestionloungeworkspace
1 Posts 1 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.
  • K Offline
    K Offline
    kowplunk
    wrote on last edited by
    #1

    I want to create a simple chat page and need to have all the postings displayed. I am unsure of what way is the best to do this. I could easily create an item template for the list view that contains the messages. This would allow for an easy setup of the edit/delete/other buttons for each of the messages. But you would think that this is a good place for a control. One thing that I am unsure of in regards to user controls is the event handling. in the list view there is the even bubbling that occurs and all event handlers are contained within the listview (for this ex). So if you make your own control are the event now handled within each control or do you create a control that has an itemtemplate within it, add all the contols that you create to an arraylist (or something with the proper interface) and set that as the datasource for a list view? Thanks for the help

    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