LoginView cant find controls...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Seb

    #1

    LoginView cant find controls...

    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)LoginVie w1.FindControl( "Label1");


    best regards
  • CreativeMind

    #2
    Re: LoginView cant find controls...

    On May 13, 4:02 pm, Seb <sebastianthegr eat...@gmail.co mwrote:
    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)LoginVie w1.FindControl( "Label1");
    >
    best regards
    explore 4guysfromrolla. com

    Comment

    • Seb

      #3
      Re: LoginView cant find controls...

      On May 13, 2:10 pm, CreativeMind <aftab.pu...@gm ail.comwrote:
      On May 13, 4:02 pm, Seb <sebastianthegr eat...@gmail.co mwrote:
      >
      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)LoginVie w1.FindControl( "Label1");
      >
      best regards
      >
      explore 4guysfromrolla. com
      Could you perhaps be a bit more specific?

      Comment

      Working...