Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebUserControls + RegisterBizObj
Message
From
18/09/2004 12:17:17
 
 
To
18/09/2004 07:48:29
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00943712
Message ID:
00943742
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
Hi Robert,

Registering a business object places it in a collection of biz objects in the mmBusinessWebPage. You can get a reference to any registered business object by calling one of the overloads of the mmBusinessWebpage.GetBizObj method.

To do this from a User Control you could use code like this:
  Dim oPage As OakLeaf.MM.Main.Web.UI.mmBusinessWebPage
  oPage = CType(Me.Page, OakLeaf.MM.Main.Web.UI.mmBusinessWebPage)

  'This retrieves it from the biz obj collection
  Dim oMenue As Menue
  oMenue = CType(oPage.GetBizObj("Menue"), Menue)
You should be able to use the MM binding mechanism but you must manually enter the correct mm properties because the property wizards will not work in the User Control designer.

Hope this helps,

Terry Carroll


>Hi all!
>
>The following description referes to the MM.NET Framework.
>
>I have a BusinessObject (menue.vb) which handles the whole access to the database.
>
>On the WebForm (Inherits mmBusinessWebPage) I'm referring to this BusinessObject using
>
>
>Me.oMenue = CType(Me.RegisterBizObj(New menue()), menue)
>
>
>But how can I do this (access the BusinessObject) within a WebUserControl (*.ascx)?
>Which "Inherits" do I have to enter to make it work?
>
>Thanks for help!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform