doesn't exist in the current context.
-
Hi , On my ascx I have following
In this section...
..... now if I try to access these label controls in my codebehind it says Label doesn't exist in the current context. I checked the designer file and I even see it in designer file :- protected global::System.Web.UI.WebControls.Label Label6;
-
Hi , On my ascx I have following
In this section...
..... now if I try to access these label controls in my codebehind it says Label doesn't exist in the current context. I checked the designer file and I even see it in designer file :- protected global::System.Web.UI.WebControls.Label Label6;
-
Hi , On my ascx I have following
In this section...
..... now if I try to access these label controls in my codebehind it says Label doesn't exist in the current context. I checked the designer file and I even see it in designer file :- protected global::System.Web.UI.WebControls.Label Label6;
Where is these Labels ? If it is within the ascx, and you are trying to access it from codebehind of the page where you have added this ascx control, then you would not find the controls directly. You need to expose them using a property and then use that to set it. :cool:
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript -
Where is these Labels ? If it is within the ascx, and you are trying to access it from codebehind of the page where you have added this ascx control, then you would not find the controls directly. You need to expose them using a property and then use that to set it. :cool:
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript