databinding in code behind
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
hi, Is it possible that you can databind a webcontrol from code behind i.e. visual basic. I know you can use Databinder.eval method in html but is their a way of doin this in code behind? Thanks Jet set
From Codebehind I think you would just set the controls value. Not really databinding at that point.
-
hi, Is it possible that you can databind a webcontrol from code behind i.e. visual basic. I know you can use Databinder.eval method in html but is their a way of doin this in code behind? Thanks Jet set
Suppose if we are binding an arraylist of objects to a control say Dropdownlist . Then set the
DataTextField
andDataValueField
of control properties to object member. Bind the data source and callDataBind
method.