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. custom datalist control

custom datalist control

Scheduled Pinned Locked Moved ASP.NET
sysadminquestion
5 Posts 3 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.
  • E Offline
    E Offline
    Ersan Ercek
    wrote on last edited by
    #1

    Hi, I am creating a new datalist custom control, basicly why I need this solution is that. I will use it in pretty same way with same columns (maybe column names that return is different). The question is that I am unable to add itemtemplate to this server control... Could you please assist me with the codes and the event name that adds this control. Thanks in advance

    T Y 2 Replies Last reply
    0
    • E Ersan Ercek

      Hi, I am creating a new datalist custom control, basicly why I need this solution is that. I will use it in pretty same way with same columns (maybe column names that return is different). The question is that I am unable to add itemtemplate to this server control... Could you please assist me with the codes and the event name that adds this control. Thanks in advance

      T Offline
      T Offline
      thatraja
      wrote on last edited by
      #2

      It's simple, here you go DataList[^] Binding images to a DataList control dynamically[^] Shopping cart in ASP.NET Creating Example with DataList GridView C#[^]

      thatraja


      **My Tip/Tricks
      My Dad had a Heart Attack on this day so don't...
      **

      E 1 Reply Last reply
      0
      • E Ersan Ercek

        Hi, I am creating a new datalist custom control, basicly why I need this solution is that. I will use it in pretty same way with same columns (maybe column names that return is different). The question is that I am unable to add itemtemplate to this server control... Could you please assist me with the codes and the event name that adds this control. Thanks in advance

        Y Offline
        Y Offline
        Yusuf
        wrote on last edited by
        #3

        In addition to thatraja list, see also this[^]

        Yusuf May I help you?

        E 1 Reply Last reply
        0
        • T thatraja

          It's simple, here you go DataList[^] Binding images to a DataList control dynamically[^] Shopping cart in ASP.NET Creating Example with DataList GridView C#[^]

          thatraja


          **My Tip/Tricks
          My Dad had a Heart Attack on this day so don't...
          **

          E Offline
          E Offline
          Ersan Ercek
          wrote on last edited by
          #4

          Hi, thanks for the answer, but what I need is not about the common datalist control, I am creating my own datalist control via web server controls. So I am overwriting some of the common datalist controls' events. I need my datalist control to come with an itemtemplate by default. This itemtemplate will require some fields that will be provided by properties. There are two events while creating your own control 1. rendercontents 2. createchildcontrols I was unable to addd itemtemplate by these 2 events.. How could I manage this, I do not know at the moment. I hope I made myself clear now.

          1 Reply Last reply
          0
          • Y Yusuf

            In addition to thatraja list, see also this[^]

            Yusuf May I help you?

            E Offline
            E Offline
            Ersan Ercek
            wrote on last edited by
            #5

            Hi, thanks for the answer, but what I need is not about the common datalist control, I am creating my own datalist control via web server controls. So I am overwriting some of the common datalist controls' events. I need my datalist control to come with an itemtemplate by default. This itemtemplate will require some fields that will be provided by properties. There are two events while creating your own control 1. rendercontents 2. createchildcontrols I was unable to addd itemtemplate by these 2 events.. How could I manage this, I do not know at the moment. I hope I made myself clear now.

            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