For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > February 2006 > Databinding a control









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Databinding a control
Wayne Sepega

2006-02-28, 7:02 pm

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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com