Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Roger 195 posts 474 karma points
    Dec 12, 2012 @ 17:51
    Roger
    0

    Edit standard asp:login control

    Hi,

    I am using the standard login control on my site to allow users to access protected pages.

    I need to edit the label text and the styles of the control

    Can anyone tell me where I can access the control or do I need to add some kind of view control to edit it?

    Thanks!

  • Roger 195 posts 474 karma points
    Dec 12, 2012 @ 18:03
    Roger
    0

    Or do I need to edit in VS and convert to a template?

  • Roger 195 posts 474 karma points
    Dec 12, 2012 @ 18:13
    Roger
    0

    Ah i've sorted it by adding attributes to the control :)

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Dec 12, 2012 @ 18:13
    Tom Fulton
    0

    The ASP.NET login control has some attributes you can use to adjust certain things, for exampke LoginButtonText="Login" or UserNameLabelText="Your Username" etc.  See the full list here

    Also, I've found that depending on your needs, it can be very difficult to get the Login control styled exactly how you like.  There's plenty of articles on google about this if you're having trouble, but an alternative is to use the RazorLogin package, which gives you full control over the markup.

    Hope this helps,
    Tom 

     

     

     

     

     

  • Roger 195 posts 474 karma points
    Dec 12, 2012 @ 18:15
    Roger
    0

    Thanks Tom, i think i just sussed out the attributes. The rest i'll do with styles

    Thanks again

    Roger

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies