|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
inside the loginviewHello.
I'm using the loginview control. There are 2 default templates. The 'LoggedInTemplate', and the 'anonymoustemplate'. However, I also have a template (or view?) for the admin role. How do I access the content dynamically within the loginview for the admin role? I tried placing a label within the control, and then tried accessing the control, but I cannot (I'm assuming it's becuase it a control within a control), but if I do a findcontrol: Label labelRoundBox1 = LoginViewTopRounded.FindControl("lblRoundBox1") as Label; labelRoundBox1.Text = "This is a test!"; .... It throws an exception (Object reference not set to an instance of an object.). So... How do I access that content? |
|||||||||||||||||||||||