Databinding a control

W

Wayne Sepega

I have the following Code (or something very close to it)

Subscription subscription = BR.GetSubscription(UserId, SubscriptionId);
txtSubName.text = subscription.Name;
txtStartDate.text = subscription.StartDate;

I want to change this so I can use the Databinding in dot net and have tried
working with the ObjectDataSource. From what I've gotten out of the object
Datasource it will need to call the BR.GetSubscription.

How do I get the ObjectDataSource to pass the UserId and SubscriptionId
parameters?

Also is there any way to do the databinding so I am still in control of
calling GetSubscription, and then only have to assign the datasource for
each of the controls?

Thanks
Wayne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top