Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Accessing populated class from separate user control

$
0
0

I have a user control for a form which creates a new class from a .vb class file and populates it.

 

Here's a very simplified version of the code behind:

Public Class MemberProfile1
    Inherits System.Web.UI.UserControl

    Dim oMember = New clsMember

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            oMember.Site_Member_id = Request("_Site_Member_id")oMember.Request_id = Request("_request_id")
    End Sub

End Class


Then I have a separate user control for the buttons of the page, since it spans accross multiple websites and the buttons and their actions can change.

 

I want to access this fully populated oMember object from the separate buttons user control but I can't find any way to do that. Can anybody help me here?

 

 

 

 

 


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>