Use business object in UserControl


Author
Message
Olivier
Olivier
StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)
Group: StrataFrame Users
Posts: 96, Visits: 806
Hello

I use a base class AppBasePage inherit of MicroFour.StrataFrame.UI.Web.BasePage,
it's ok , i can use my business object .

But if i have a UserControl , how i can Bind textbox and save to in Business object,

have you a good way to work with userControl. and Business Object on the Webform.

Thanks
Olivier,

==============================================
Asp.net C# - Strataframe - telerik
==============================================
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Oliver:

You can most definitely create a user control and bind to it.  In fact, there are several ways that you can learn more about this.  You need to implement the IBusinessBindable interface to your user control.  If you search the forum, you will see a ton of posts.  But there are also some samples that come with the framework showing you exactly how to implement the IBusinessBindable interface on a control.

Also, you can open the source code and look at the StrataFrame textbox or any other SF web control, and you can see how the IBusinessBindable was implemented and then add this to your own control.  Honestly, most times I implement IBusinessBindable myself on a new user control, I will go copy the implementation from another class and then make the changes necessary.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search