KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Trying to access a property from the parent page on my user control. Here's the start of my default.asp codebehind: Partial Class _Default Inherits System.Web.UI.Page Private _selectedID As String = "74251BK3232" Public Property SelectedID() As String Get Return _selectedID End Get Set(ByVal value As String) _selectedID = value End Set End Property Here's the start of my user control codebehind: Partial Class ctrlAddAttribute Inherits System.Web.UI.UserControl Dim selectedID As String = Me.Parent.Page.selectedID() I'm getting the error "selectedID is not a member of System.Web.UI.Page" Please adivse!
Tags (comma-separated)
Save Edits
Cancel