Hi All,

I am developing a application with Web user Control ASCX.VB.
In the ASCX.VB, I have a public variable called UserName, so in myApp.aspx.vb, I have to declare UserName and assign it with myUC.UserName.

Can anybody know have any settings let me directly use UserName (NOT myUC.UserName)? Thanks in advance.


myApp.aspx.vb
Dim myUC As myFunctions = New myFunctions

Dim UserName=myUC.UserName




myFunc.ascx.vb

Public UserName