macecase
asked on
Basic .Net Concept with MasterPages and CodeBehind
Ok, so I have an .aspx file that is vb. I have code in the code-behind that relate to items on the .aspx page.
I get errors from time to time on the code-behind that state:
"txtxYZ" is not declared. It may be inaccessible due to it's protection level.
I cannot figure out why I cannot always reference elements on the form from the code-behind. I'm not an expert but I understand the basic concepts and it does work on other pages. This one, however, it isn't. I have run into this before and just start a new web form but I'm bothered by why it happens.
Any thoughts?
I get errors from time to time on the code-behind that state:
"txtxYZ" is not declared. It may be inaccessible due to it's protection level.
I cannot figure out why I cannot always reference elements on the form from the code-behind. I'm not an expert but I understand the basic concepts and it does work on other pages. This one, however, it isn't. I have run into this before and just start a new web form but I'm bothered by why it happens.
Any thoughts?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is the control on the page itself and not within another container such as gridview, repeater, datalist etc?