I'm new to VS2008 (and ASP.NET in general).
I'm trying a simple example, i have a class that exposes a DataSet and
want to populate 2 textboxes on a web form...
how can i bind from the datasource? (and have it update it after
clicking a Save button)
I've seen some examples refer to a Bindings property, but i don't see
it exists in a Textbox object... there's only DataBind() and it takes
no params, and there's no DataSource property...
Thanks!
> I'm new to VS2008 (and ASP.NET in general).
>
[quoted text clipped - 9 lines]
>
> Thanks!
I found this Westwind.Web.Data which looks really cool:
http://www.developerfusion.co.uk/show/4659/3/
i'm not really sure from the example how to set the
BindingSourceObject & BindingSourceProperty properties. I have a
static class object called Config, and it's GetData returns a single
row with a field called "ID"... so I set:
BindingSourceObject = "Config.GetData"
and
BindingSourceProperty = "ID"
but can't figure out why i get "** Field binding Error **" on my bound
textbox...
anyone got this thing to work?
Ben - 11 Mar 2008 05:20 GMT
> > I'm new to VS2008 (and ASP.NET in general).
>
[quoted text clipped - 25 lines]
>
> anyone got this thing to work?
Ahhh.... found my problem.
BindingSourceObject had to point to a public object name on the form
(accessible via: this.<objectname>)
COOL !!! this thing is awesome, gonna save me so much time!