Click here to Skip to main content
15,908,455 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use

XML
<div id="logoff" runat="server">
                                    <a class="logoff" id="loggmeof" href="#">LogOff</a>
                                </div>




in master page , and in page_load , if give
logoff.Visible = false;


and when i build in visual studio 2008 , it gives error for logoff not found

then when i comment it out , it says build successfull
Posted

1 solution

It happens many times, when the designer page content is not updated in the designer file...
Try like this.

1)delete the control from the ASPX page..
2) Save the master page
3) Try creating the same control with same ID
3) save the master page..


now you try to code in code behind.. it should work..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900