I am new in C# and I can't move forward after getting the following message from a simple XHTML code which seems (to me) well written, and which doesn't show any error, warning or message prior to the debugging procedure. I am developing on Visual 2008. Here comes the piece of code followed by the error message:
<%@ Page Language="C#" MasterPageFile="~/Bug2Bug.master" Title="Create a New User" %>
<script runat="server">
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContent" Runat="Server">
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
ContinueDestinationPageUrl="~/Secure/Books.aspx">
<wizardsteps> <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server"/> <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server"/> </wizardsteps>
</asp:CreateUserWizard>
</asp:Content>
The error message is:
"Control 'ctl00_bodyContent_CreateUserWizard1' of type 'CreateUserWizard' must be placed inside a form tag with runat=server"
It seems to me that the tag is there.
Please advise
Anybody there to help a beginner C# developer
Started by Gentilhomme, May 28 2010 11:04 PM
10 replies to this topic
#1
Posted 28 May 2010 - 11:04 PM
|
|
|
#2
Posted 28 May 2010 - 11:48 PM
<%@ Page Language="C#" MasterPageFile="~/Bug2Bug.master" Title="Create a New User" %> <script runat="server"> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="bodyContent" Runat="Server"> <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" ContinueDestinationPageUrl="~/Secure/Books.aspx"> <wizardsteps> <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server"/> <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server"/> </wizardsteps> </asp:CreateUserWizard> </asp:Content> </script>
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics
#3
Posted 29 May 2010 - 07:05 AM
How do I get to your tutorial, where is it located in the site?
#4
Posted 29 May 2010 - 08:31 AM
His "Visual C# Programming Basic" tutorial? Its not on this site its on scribed, you can find the link in his signature.
Also once your done with that check out these:
Visual C# .NET for Complete Beginners - a free programming course
Although there's not much there, there my favorite.
Also once your done with that check out these:
Visual C# .NET for Complete Beginners - a free programming course
Although there's not much there, there my favorite.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.
#5
Posted 29 May 2010 - 10:04 AM
Gentilhomme said:
How do I get to your tutorial, where is it located in the site?
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics
#6
Posted 30 May 2010 - 06:36 AM
hope everything is clear now for the programmer
#7
Posted 30 May 2010 - 06:38 AM
gokuajmes said:
hope everything is clear now for the programmer
Yeah, so do I.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics
#8
Posted 30 May 2010 - 08:29 AM
Quote
hope everything is clear now for the programmer
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.
#9
Posted 30 May 2010 - 10:53 PM
thegamemaker said:
You sure like to increase that post count :P
#10
Posted 31 May 2010 - 12:08 AM
gokuajmes said:
Haha.. :lol: Gamemaker and Davide are so quick in understanding things .But i do it only when member gets solution & I too know a solution.
And what is your solution in this case?
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics
#11
Posted 31 May 2010 - 07:03 AM
well as the debugger reported any & every asp.net control needs to be nested inside a runat='server' tag .eventually the whole form needs to be inside a "server"> tag.that justifies your code with all the code inside script tag
Edited by gokuajmes, 31 May 2010 - 07:06 AM.
minor errors


Sign In
Create Account

Back to top









