Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Custom Templated Databound Control or derived control?

Reply
Thread Tools

Custom Templated Databound Control or derived control?

 
 
MattC
Guest
Posts: n/a
 
      11-23-2005
Hi,

I want to create a control that performs much like a datalist but I want
more control over how the <ItemTemplate> contents is set out on the page.
For example I have a 4 by N grid of images to set out on the page, how the
first row is slightly different in taht the first image is twice the size of
the rest, so the first row only have 3 images the remaining rows have 4
images. Would I be best to derive my own control from Repeater? What
methods will I need to override to alter the layout to design required.

The information about the images is stored in a collection of classes so I
will need to use the DataBinder.Eval(...) method.

TIA


MattC


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
databound custom controls vs composite databound custom controls rodchar ASP .Net 0 11-26-2007 03:51 PM
Method In Templated Super/Parent Called From Templated Derived/Child Rasmus Johansen C++ 3 10-18-2007 11:22 AM
Derived::Derived(const Base&) and Derived& operator=(const Base&) developereo@hotmail.com C++ 1 05-23-2007 12:07 AM
templated databound control problem - not showing databound Manu ASP .Net Web Controls 0 05-22-2006 09:46 AM
Composite control delegating databound templated features to child <asp:repeater> control debartsa ASP .Net Building Controls 1 04-08-2004 11:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57