Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Left Nav Login Box-code problem

  1. #1
    sam.bengtson is offline Member
    Join Date
    Jan 2011
    Posts
    64

    Default Left Nav Login Box-code problem

    I have a interesting problem that I have been struggling with for about a week or so. I've added a login box along the left nav of template.ascx but I cannot implement a form runat="server" tag because it exists in almost every other page on the site. I need this tag so I can use an asp button onclick to call my codebehind for login authentication. As a last resort, I tried to use a regular html button but that didn't work at all. Has anybody else tried to implement anything like this?

  2. #2
    Timmey is offline Junior Member
    Join Date
    May 2010
    Location
    Germany
    Posts
    25

    Default

    Hi,

    Every ASPX has a Form which runs at Server.
    Check this Page for Information: http://www.w3schools.com/aspnet/aspnet_forms.asp

    If you want to create a logincontrol for your Page, I would suggest you dont use the existing control.

    Just take a Textbox, another Textbox with property Password, add a button.

    Then have a look what happens if you click on the origin Controls Login Button.
    If you aint a .Net Developer or Familar with this kind of Controls and Webforms, for security reasons have a look at the DevNet Partners.
    http://devnet.aspdotnetstorefront.com/

    Cheers
    Timmey