Results 1 to 3 of 3

Thread: I need hel displaying the login name on a text box

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2008
    Posts
    104

    I need hel displaying the login name on a text box

    I have a members website where they can create their own logon. when the user logs in the login name displays in the header of the page. this is what that codes look like:
    HTML Code:
    <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" server" /></span>!
    I would like to also have the login name to be display on a textbox, which then I will save it to the data base and then I would use as an ID for retrieving comments and pictures that the user uploads. The name of the text box is Textuserid.txt.

    Any help will be greatly appreciated.
    BK

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,605

    Re: I need hel displaying the login name on a text box

    Can't u use the loginname_Load event handler and get - set what you want inside it?
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: I need hel displaying the login name on a text box

    Hello,

    Once the user has created the Login Name, it is pretty much fixed, unless you provide a User Interface to update the Membership Profile. Putting the Login Name in a text box would sort of suggest that the user can change this, and I think this is something that you probably want to avoid. If all you need is to read the Login name, why not simply get it from the LoginName control?

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width