I have a control used by multiple web pages. In this control I’m running a stored proc to get a user’s permission level. I then store this in an invisible label.
In the pages that this menu control is loaded in different things happen based on the permission level, mostly buttons being enabled/disabled.
My question is can I access the label I’ve put in the menu control (.ascx) from the VB of the pages it’s in? and if yes, how?
I have a control used by multiple web pages. In this control I’m running
Share
There are couple ways.
Say your label is this:
1: You can get the VALUE of the label like.
2: Get the LABEL itself like:
3: Find the lable inside the UC (MyMenuUC1 below) is the id of the menu usercontrol:
4: Grab string like this: