Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. LoggedInTemplate

LoggedInTemplate

Scheduled Pinned Locked Moved ASP.NET
questiondesign
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cyberpulse
    wrote on last edited by
    #1

    I have a Label control inside the LoginView's LoggedInTemplate. How do I access it ? I've tried the following:- Label lbl_Role = (Label)LoginView1.FindControl("Label1"); But it returns nothing. When I checked the properties of the label in the design view its path read as:- LoginView1.LoggedInTemplate.Label1 However, the LoginView1.LoggedInTemplate property does not have a FindControl() method. Is there anyway in which I can access the Label ? Thanks

    S 1 Reply Last reply
    0
    • C Cyberpulse

      I have a Label control inside the LoginView's LoggedInTemplate. How do I access it ? I've tried the following:- Label lbl_Role = (Label)LoginView1.FindControl("Label1"); But it returns nothing. When I checked the properties of the label in the design view its path read as:- LoginView1.LoggedInTemplate.Label1 However, the LoginView1.LoggedInTemplate property does not have a FindControl() method. Is there anyway in which I can access the Label ? Thanks

      S Offline
      S Offline
      student_rhr
      wrote on last edited by
      #2

      Is the control you are looking for in active template? What this mean is that with loginview control only one template is active at any given time i.e. its either if user is not logged in or if use is logged in. Make sure the control you are looking for is within active template. \ hth

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups