Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. error in textbox and table

error in textbox and table

Scheduled Pinned Locked Moved ASP.NET
helpsysadmintestingbeta-testing
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sanaziuse
    wrote on last edited by
    #1

    Hi all . I insert a table in my form then I righ click on it and change it to "run as server" then I put a textbox in it and name it txtuser. when I run the program this error appears in the explorer ( the page i run) : Server Error in '/TESTING' Application. -------------------------------------------------------------------------------- Control 'txtuser' of type 'TextBox' must be placed inside a form tag with runat=server. please help me

    S 1 Reply Last reply
    0
    • S sanaziuse

      Hi all . I insert a table in my form then I righ click on it and change it to "run as server" then I put a textbox in it and name it txtuser. when I run the program this error appears in the explorer ( the page i run) : Server Error in '/TESTING' Application. -------------------------------------------------------------------------------- Control 'txtuser' of type 'TextBox' must be placed inside a form tag with runat=server. please help me

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      Hi Can you post the part of the html code that giving the problem ?

      S M 2 Replies Last reply
      0
      • S Sandeep Akhare

        Hi Can you post the part of the html code that giving the problem ?

        S Offline
        S Offline
        sanaziuse
        wrote on last edited by
        #3

        < asp:TextBox id="TextBox1" runat="server"> it run as server but i face problem when running (debug) its error : Control 'TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server. plz help me:((

        V S 2 Replies Last reply
        0
        • S sanaziuse

          < asp:TextBox id="TextBox1" runat="server"> it run as server but i face problem when running (debug) its error : Control 'TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server. plz help me:((

          V Offline
          V Offline
          Venkatesh Mookkan
          wrote on last edited by
          #4

          sanaziuse wrote:

          < asp:TextBox id="TextBox1" runat="server">

          Place all your server controls inside a form with runat="server" attribute. For example,

          < asp:TextBox id="TextBox1" runat="server"/> < asp:TextBox id="TextBox2" runat="server"/> < asp:TextBox id="TextBox3" runat="server"/>

          Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group

          S 2 Replies Last reply
          0
          • S sanaziuse

            < asp:TextBox id="TextBox1" runat="server"> it run as server but i face problem when running (debug) its error : Control 'TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server. plz help me:((

            S Offline
            S Offline
            Sandeep Akhare
            wrote on last edited by
            #5

            Hi i think the problem is in HTML itself see the end tag of the form also < asp:TextBox id="TextBox1" runat="server"> NO end tag for textbox >No end tag for (Instead of ) OK next if then also preoblem is not solve give whole html file so that i can check it :)

            1 Reply Last reply
            0
            • S Sandeep Akhare

              Hi Can you post the part of the html code that giving the problem ?

              M Offline
              M Offline
              MohammadYousef
              wrote on last edited by
              #6

              Hi All, You need to make the cell that contained the textbox run at server not only the table

              S 1 Reply Last reply
              0
              • M MohammadYousef

                Hi All, You need to make the cell that contained the textbox run at server not only the table

                S Offline
                S Offline
                sanaziuse
                wrote on last edited by
                #7

                I did ...it didnt solve the problem

                1 Reply Last reply
                0
                • V Venkatesh Mookkan

                  sanaziuse wrote:

                  < asp:TextBox id="TextBox1" runat="server">

                  Place all your server controls inside a form with runat="server" attribute. For example,

                  < asp:TextBox id="TextBox1" runat="server"/> < asp:TextBox id="TextBox2" runat="server"/> < asp:TextBox id="TextBox3" runat="server"/>

                  Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group

                  S Offline
                  S Offline
                  sanaziuse
                  wrote on last edited by
                  #8

                  what do u mean by Form? how this will work?

                  1 Reply Last reply
                  0
                  • V Venkatesh Mookkan

                    sanaziuse wrote:

                    < asp:TextBox id="TextBox1" runat="server">

                    Place all your server controls inside a form with runat="server" attribute. For example,

                    < asp:TextBox id="TextBox1" runat="server"/> < asp:TextBox id="TextBox2" runat="server"/> < asp:TextBox id="TextBox3" runat="server"/>

                    Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group

                    S Offline
                    S Offline
                    sanaziuse
                    wrote on last edited by
                    #9

                    thank you I fixed my problem by your help using

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups