Click here to Skip to main content
16,005,178 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
leppie2-Oct-02 8:59
leppie2-Oct-02 8:59 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
Paul Riley2-Oct-02 9:20
Paul Riley2-Oct-02 9:20 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
leppie2-Oct-02 9:37
leppie2-Oct-02 9:37 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
Paul Riley2-Oct-02 9:54
Paul Riley2-Oct-02 9:54 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
leppie2-Oct-02 10:17
leppie2-Oct-02 10:17 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
Paul Riley2-Oct-02 10:31
Paul Riley2-Oct-02 10:31 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
leppie2-Oct-02 11:23
leppie2-Oct-02 11:23 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
Paul Riley2-Oct-02 11:55
Paul Riley2-Oct-02 11:55 
leppie wrote:
I just get values from a dataset No need to even to do databinding in HTML.

Very true and I did my first site that way, but DataBinding is very powerful and can remove tons of code from the CodeBehind.

For example, if you want to build a DropDownList from a DataSet, you can run through the dataset and add the items in a loop. Or you can drop the DataSet and the DropDownList onto your page, go into the Data properties, select the dataset, the value field and the text field and you're done (except one line of code to tell it when to DataBind).

Not too much of a saving if you only have one DropDownList. But I have one page with eight DropDownLists all containing a list of players for a team, so the team can assign a captain and the 7 players.

In that scenario, I only need to drop one DataSet onto the form and I can bind all 8 DropDownLists to it. A single this.DataBind() and it's all done.

leppie wrote:
BTW, does a property need a special attribute to become databindable?

Yeah, I think it's Bindable(true). I haven't written a custom control that needs databinding as yet but it looks simple enough.

Paul
GeneralRe: CheckBoxList (ListItem.Selected) Pin
leppie2-Oct-02 12:08
leppie2-Oct-02 12:08 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
Paul Riley2-Oct-02 12:07
Paul Riley2-Oct-02 12:07 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
leppie2-Oct-02 12:29
leppie2-Oct-02 12:29 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
Paul Riley2-Oct-02 12:35
Paul Riley2-Oct-02 12:35 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
leppie2-Oct-02 12:59
leppie2-Oct-02 12:59 
GeneralRe: CheckBoxList (ListItem.Selected) Pin
Paul Riley2-Oct-02 13:09
Paul Riley2-Oct-02 13:09 
GeneralIDE for ASP Pin
Sarvesvara (BVKS) Dasa2-Oct-02 0:57
Sarvesvara (BVKS) Dasa2-Oct-02 0:57 
GeneralRe: IDE for ASP Pin
Megan Forbes2-Oct-02 1:02
Megan Forbes2-Oct-02 1:02 
GeneralRe: IDE for ASP Pin
raajsekhar3-Oct-02 2:11
raajsekhar3-Oct-02 2:11 
GeneralRe: IDE for ASP Pin
goddess_spanky3-Oct-02 9:22
goddess_spanky3-Oct-02 9:22 
GeneralJavascript function name Pin
Perica Zivkovic1-Oct-02 23:01
Perica Zivkovic1-Oct-02 23:01 
GeneralRe: Javascript function name Pin
alex.barylski2-Oct-02 12:30
alex.barylski2-Oct-02 12:30 
GeneralControl resizeing... Pin
Ray Cassick1-Oct-02 20:08
Ray Cassick1-Oct-02 20:08 
GeneralRe: Control resizeing... Pin
Paul Watson1-Oct-02 23:05
sitebuilderPaul Watson1-Oct-02 23:05 
GeneralRe: Control resizeing... Pin
Ray Cassick2-Oct-02 4:00
Ray Cassick2-Oct-02 4:00 
GeneralRe: Control resizeing... Pin
Paul Riley2-Oct-02 5:48
Paul Riley2-Oct-02 5:48 
GeneralRe: Control resizeing... Pin
Ray Cassick2-Oct-02 7:16
Ray Cassick2-Oct-02 7:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.