I have a variable that is declared in a user control. It is the value of a drop down list in the user control. When I try to use it in an If statement on an aspx page it says that the variable is not declared. Is there a way to declare the variable on the aspx page or make it recognize that it is declared on the user control page?
I'm calling the code at the top of the aspx page
<%@ Register src="pType.ascx" tagname="pType" tagprefix="uc2" %>
I'm using the if statement
<%If pt.SelectedValue = "1" Then%>
In the control pt is defined by