Solved

must be placed inside a form tag with runat=server.

Posted on 2006-06-28
7
848 Views
Last Modified: 2008-03-06
Whenever I add a control to a form it gives me an error like this:
Control 'Button3' of type 'Button' must be placed inside a form tag with
runat=server.

any idea?

thanks
0
Comment
Question by:jskfan
  • 4
  • 3
7 Comments
 
LVL 30

Accepted Solution

by:
callrs earned 250 total points
ID: 17002365
0
 

Author Comment

by:jskfan
ID: 17002813
what should I do to make any control that I drag to the for will go between <form> </form> tags, without doing it manually?.

0
 
LVL 30

Expert Comment

by:callrs
ID: 17002979
In what program? I know Javascript & HTML, not ASP etc., yet...
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Comment

by:jskfan
ID: 17003787
ASP.Net
0
 
LVL 30

Expert Comment

by:callrs
ID: 17003925
How about looking in the documentation for the program you use? Click on the Help menu & look for: drag control to form, etc.
0
 

Author Comment

by:jskfan
ID: 17005449
the visual studio is not installed with help documentation
0
 
LVL 30

Expert Comment

by:callrs
ID: 17008936
Found this on Google
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B302342     HOW TO: Add ASP.NET Server Controls to a Web Form and Change Their Properties

Google for: asp.net visual studio drag control to form
for more if that doesn't help
-R.S.
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

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