Hi there, I have a page which has 1 inlcude. The inlcude is a top navigation that has a label on it and it's called "loginheader.aspx". The label on this page is called lblMarquee and is runat the server so i can do things with it in my code behind module.
The problem is you are only allowed 1 code behind module per page. Meaning that when these 2 pages are put together in the browser there can only be 1 code behind module and not 1 for each page.
But the problem is I can not figure out how to access the control on the included page. The code behind module is with the main page login.aspx. This page has it's own controls that I check against a database etc..
So my problem is, I have 2 pages that have controls on them that have to be accessed by the same code behind module.
I have tried refrencing the other page like
loginheader.lblMarquee.Text ="asdad"
but i get the error saying i cant becasue it is Protected... So i set the Label as Public Withevents instead of Protected and i get a totaly different error.
Sigh....![]()
Any help is appreciated!
Thanks!![]()





Reply With Quote