Solved

login control

Posted on 2011-02-11
7
354 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 33

Expert Comment

by:paulmacd
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 33

Accepted Solution

by:
paulmacd 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Closing Comment

by:vbnetcoder
ID: 34874803
ty
0
 
LVL 33

Expert Comment

by:paulmacd
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 32

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 run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

759 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now