Solved

login control

Posted on 2011-02-11
7
358 Views
Last Modified: 2012-05-11
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
Comment
Question by:vbnetcoder
  • 3
  • 3
7 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 34874615

...
<form runat="server">
...
(login control goes here)
...
</form>
...
0
 

Author Comment

by:vbnetcoder
ID: 34874634
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
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 500 total points
ID: 34874738
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
Technology Partners: 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!

 

Author Closing Comment

by:vbnetcoder
ID: 34874803
ty
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 34874808
Thanks, but did you get it working?
0
 

Author Comment

by:vbnetcoder
ID: 34874831
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
 
LVL 33

Expert Comment

by:it_saige
ID: 34874832
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DataGridView / get bound table name? 8 35
reading excel file in .net 2 30
How to filter by key press ? 6 54
vb.net datagrid point 4 16
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question