LoginView cant find controls...

S

Seb

With in my login view I have some labels and a button with a onclick
event.
However when I click the button I can only access my controls by
declaring a new control and using the FindControl method of my
loginview as shown below. Is this really the best way to do it?


Label Label1 = (Label)LoginView1.FindControl("Label1");


best regards
 
C

CreativeMind

With in my login view I have some labels and a button with a onclick
event.
However when I click the button I can only access my controls by
declaring a new control and using the FindControl method of my
loginview as shown below. Is this really the best way to do it?

Label Label1 = (Label)LoginView1.FindControl("Label1");

best regards

explore 4guysfromrolla.com
 

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