On Mar 10, 8:35*pm, Ben <benm5...@gmail.com> wrote:
> 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 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?