inside the loginview

G

Guest

Hello.
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top