|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
newbie question regarding repeater controlI've got a project where I need to create a table like: | text1 | text 2 | dropdownlist | text input box | The dropdownlist will be populated differently, or could be, for each row.Is the repeater control the right one to use for this? If so, how do you use a dropdownlist in a repeater? I've used it for displaying text items and was able to add an asp button to one of the items, but I can't figure out how to build a dropdownlist into it. I tend to code by hand rather than using Visual Studio to design anything. Am I making this harder or easer on myself? :-) One other question: There will most likely be more items in this table than I can display on one page. Is there a built-in way of paging with the repeater control or do I need to account for that myself? Many thanks! Bruce Hi Bruce,
Comments inline. On Thu, 07 Apr 2005 09:30:45 -0700, Bruce Dumes <brucedu***@dumes.net> wrote: >Hello - Sure, a Repeater should be fine, see remarks below on paging.> >I've got a project where I need to create a table like: > >| text1 | text 2 | dropdownlist | text input box | > > >The dropdownlist will be populated differently, or could be, for each row. > >Is the repeater control the right one to use for this? >If so, how do This article explains how to bind a DropDownList inside a Datagrid,>you use a dropdownlist in a repeater? I've used it for displaying text >items and was able to add an asp button to one of the items, but I can't >figure out how to build a dropdownlist into it. the same techniques will apply to a Repeater: http://www.dotnetjunkies.com/Tutorial/42ACA3E5-103C-4FC3-ACB3-25D13EB11DC3.dcik >I tend to code by hand rather than using Visual Studio to design It depends :) When I was starting out I coded everything by hand,>anything. Am I making this harder or easer on myself? :-) which really helped me learn the syntax cold, and learn a lot about ..NET. On the other hand, there are some features in the IDE which can speed up your development time. >One other question: There will most likely be more items in this table There's no built-in paging for the Repeater, so you could either add>than I can display on one page. Is there a built-in way of paging with >the repeater control or do I need to account for that myself? it yourself (plenty of articles out there explain how), or you could use a Datagrid control which has paging built in. > Marcie>Many thanks! > >Bruce
DataReader in Excel (Better Post than the last)
Help with some code? for loop ending condition Update for VS .NET 2003? Compiler errors due to temp file inconsistencies ?? How to use Regex to Parse this String Remove items from listbox How to get assembly file info? Date validation / verification expand a node of a treeview programmatically |
|||||||||||||||||||||||