Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

login control

Posted on 2011-02-11
7
Medium Priority
?
361 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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 34

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

670 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