custom datalist control
-
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
-
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
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...
** -
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
-
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...
**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.
-
In addition to thatraja list, see also this[^]
Yusuf May I help you?
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.