Jump to content

Anybody there to help a beginner C# developer

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
10 replies to this topic

#1
Gentilhomme

Gentilhomme

    Newbie

  • Members
  • Pip
  • 2 posts
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

#2
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts
<%@ 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
Gentilhomme

Gentilhomme

    Newbie

  • Members
  • Pip
  • 2 posts
How do I get to your tutorial, where is it located in the site?

#4
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
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.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#5
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts

Gentilhomme said:

How do I get to your tutorial, where is it located in the site?
Log in to Scribd (if required) and you will see the tutorial in the middle of the page. Or... download it from my website: Search Results for "err.000webhost.com" Programming Basics.pdf
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics

#6
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
hope everything is clear now for the programmer

#7
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts

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
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts

Quote

hope everything is clear now for the programmer
You sure like to increase that post count :P
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#9
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts

thegamemaker said:

You sure like to increase that post count :P
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.

#10
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts

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
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
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