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. String builder problem

String builder problem

Scheduled Pinned Locked Moved ASP.NET
helpcsharphtmlsysadmin
10 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.
  • K Offline
    K Offline
    krishnaveer
    wrote on last edited by
    #1

    Hi guys I am making a string builder and this string i have to sent on Email local its working fine while uploading its giving error "A page can have only one server-side Form tag. " while in my application i am rendering a panel (panel id =panel1) after that i am using

    tag vb.net code Dim sbr As New StringBuilder sbr.Append("") Dim swr As New StringWriter(sbr) Dim htw As New HtmlTextWriter(swr) panel1.RenderControl(htw) sbr.Append("

    ") sbr.Append("

    Warm Regards..

    ") sbr.Append("") and html code so what is issue plz help any one

    krishna veer singh

    P K G 4 Replies Last reply
    0
    • K krishnaveer

      Hi guys I am making a string builder and this string i have to sent on Email local its working fine while uploading its giving error "A page can have only one server-side Form tag. " while in my application i am rendering a panel (panel id =panel1) after that i am using

      tag vb.net code Dim sbr As New StringBuilder sbr.Append("") Dim swr As New StringWriter(sbr) Dim htw As New HtmlTextWriter(swr) panel1.RenderControl(htw) sbr.Append("

      ") sbr.Append("

      Warm Regards..

      ") sbr.Append("") and html code so what is issue plz help any one

      krishna veer singh

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Are you using Master pages ? do one thing, check if you master page already contain a form tag. if not then remove it from your child page and put it on masterpage.if yes then remove it from your child pages

      Parwej Ahamad g.parwez@gmail.com

      K 1 Reply Last reply
      0
      • K krishnaveer

        Hi guys I am making a string builder and this string i have to sent on Email local its working fine while uploading its giving error "A page can have only one server-side Form tag. " while in my application i am rendering a panel (panel id =panel1) after that i am using

        tag vb.net code Dim sbr As New StringBuilder sbr.Append("") Dim swr As New StringWriter(sbr) Dim htw As New HtmlTextWriter(swr) panel1.RenderControl(htw) sbr.Append("

        ") sbr.Append("

        Warm Regards..

        ") sbr.Append("") and html code so what is issue plz help any one

        krishna veer singh

        K Offline
        K Offline
        knbinoj58
        wrote on last edited by
        #3

        [Message Deleted]

        K 1 Reply Last reply
        0
        • P Parwej Ahamad

          Are you using Master pages ? do one thing, check if you master page already contain a form tag. if not then remove it from your child page and put it on masterpage.if yes then remove it from your child pages

          Parwej Ahamad g.parwez@gmail.com

          K Offline
          K Offline
          krishnaveer
          wrote on last edited by
          #4

          no i am not using master page

          krishna veer singh

          P 1 Reply Last reply
          0
          • K knbinoj58

            [Message Deleted]

            K Offline
            K Offline
            krishnaveer
            wrote on last edited by
            #5

            i am not getting what r u saying...

            krishna veer singh

            1 Reply Last reply
            0
            • K krishnaveer

              Hi guys I am making a string builder and this string i have to sent on Email local its working fine while uploading its giving error "A page can have only one server-side Form tag. " while in my application i am rendering a panel (panel id =panel1) after that i am using

              tag vb.net code Dim sbr As New StringBuilder sbr.Append("") Dim swr As New StringWriter(sbr) Dim htw As New HtmlTextWriter(swr) panel1.RenderControl(htw) sbr.Append("

              ") sbr.Append("

              Warm Regards..

              ") sbr.Append("") and html code so what is issue plz help any one

              krishna veer singh

              K Offline
              K Offline
              knbinoj58
              wrote on last edited by
              #6

              add <pages validateRequest="false"> to your web.config under system.web

              K 2 Replies Last reply
              0
              • K knbinoj58

                add <pages validateRequest="false"> to your web.config under system.web

                K Offline
                K Offline
                krishnaveer
                wrote on last edited by
                #7

                I am already using this code under web config file

                krishna veer singh

                1 Reply Last reply
                0
                • K knbinoj58

                  add <pages validateRequest="false"> to your web.config under system.web

                  K Offline
                  K Offline
                  krishnaveer
                  wrote on last edited by
                  #8

                  this code krishna veer singh

                  1 Reply Last reply
                  0
                  • K krishnaveer

                    no i am not using master page

                    krishna veer singh

                    P Offline
                    P Offline
                    Parwej Ahamad
                    wrote on last edited by
                    #9

                    Did you try HTML Encode/Decode with manipulated string ?

                    Parwej Ahamad g.parwez@gmail.com

                    1 Reply Last reply
                    0
                    • K krishnaveer

                      Hi guys I am making a string builder and this string i have to sent on Email local its working fine while uploading its giving error "A page can have only one server-side Form tag. " while in my application i am rendering a panel (panel id =panel1) after that i am using

                      tag vb.net code Dim sbr As New StringBuilder sbr.Append("") Dim swr As New StringWriter(sbr) Dim htw As New HtmlTextWriter(swr) panel1.RenderControl(htw) sbr.Append("

                      ") sbr.Append("

                      Warm Regards..

                      ") sbr.Append("") and html code so what is issue plz help any one

                      krishna veer singh

                      G Offline
                      G Offline
                      Guffa
                      wrote on last edited by
                      #10

                      You might find your answer in the thread that was posted yesterday with the same subject and the same question... by the same user...

                      Despite everything, the person most likely to be fooling you next is yourself.

                      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