Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Data Bind Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ben - 11 Mar 2008 02:35 GMT
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!
Ben - 11 Mar 2008 04:58 GMT
> 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!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.