I see it in the Watch Window, how to get to it from C#

CTut63

Newcomer
Joined
May 12, 2004
Messages
1
Hello,
Here's the scenario: I need to set a hyperlink visible property to false. The hyperlink is in an user control ascx file, which is Referenced in the ASPX properly and shows perfectly in the web page. The user control ID is "MyHeader" and I see it in the Watch Window when I drill down to it.

In the watch window, I drill down from "this" to the first property: [ASP.EventViewMain_aspx]. Under [ASP.EventViewMain_aspx]
I see MyHeader, and the hyperlink I want to hide.

How do I access MyHeader from C# near the Page_Load to set visible = false?

thanks!
 
Back
Top