Solved

login control

Posted on 2011-02-11
7
356 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
ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

 

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 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