Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • Last Modified:

login control

I added a login control to my webpage (never used that control before and got the following error:

Control 'ctl01' of type 'Login' must be placed inside a form tag with runat=server
0
vbnetcoder
Asked:
vbnetcoder
  • 3
  • 3
1 Solution
 
Paul MacDonaldDirector, Information SystemsCommented:

...
<form runat="server">
...
(login control goes here)
...
</form>
...
0
 
vbnetcoderAuthor Commented:
I believe that is what i do have:

<body>
    <form id="form1" runat="server">
    <div>
   
        <asp:Login ID="Login1" runat="server">
        </asp:Login>
   
    </div>
    </form>
</body>
0
 
Paul MacDonaldDirector, Information SystemsCommented:
Looks okay to me.  Are you sure the rest of the tags are well formed - that is, there aren't any syntax errors on the page?  Also, make sure the form tag's runat has matched quotes around the server value.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
vbnetcoderAuthor Commented:
ty
0
 
Paul MacDonaldDirector, Information SystemsCommented:
Thanks, but did you get it working?
0
 
vbnetcoderAuthor Commented:
yes ... not sure exactly what i had wrong.  It must have been the tags; I removed the login and put it back in and it is working.

Wondering why the control is so tiny though
0
 
it_saigeDeveloperCommented:
Also, ensure you are using only one form tag.

<body>
<form...>
</form>
</body>

Not:

<body>
<form...>
<form...></form>
</form>
</body>

-or-

<body>
<form...>
</form>
<form...>
</form>
</body>

HTH,

-saige-
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now