Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WebUserControls + RegisterBizObj
Message
De
18/09/2004 12:30:03
 
 
À
18/09/2004 12:17:17
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00943712
Message ID:
00943746
Vues:
16
Hi Terry!

Thanks for advice - I'll try!

>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!!!
robert.oh.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform