Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# version of VFP With ?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00772760
Message ID:
00775340
Views:
11
Stephen,

>I am taking empty fileds and populating them via:
>MmTextBox2.BindingSource = "SecurityCl1";
>MmTextBox2.BindingSourceMember = "em_first";
>MmTextBox2.Text = (dsEmployee.Tables["employee"].Rows[0]["em_first"].ToString());
>MmTextBox2.DataBind() ;

Cathi Gero's response to you is correct...in fact you don't have to write any of this code if you use the MM .NET builders. There is a builder for setting both the BindingSource and BindingSource Member. The text property is set automatically at runtime, and so is the call to DataBind. All of the typing you're currently doing for data binding is the main reason I made it all automatic so you don't have to write any code!

Check out the MM .NET Help topic: "Data Binding Mere Mortals Web Form Controls" in Chapter 6.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform