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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Please help!

Please help!

Scheduled Pinned Locked Moved ASP.NET
htmlasp-nethelpquestion
9 Posts 3 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
    skinnyreptile
    wrote on last edited by
    #1

    I have a word document which contains a few tables. I saved the .doc file to a .html file in Word 2000, then I copied the HTML code over to my ASP project within the "BODY" of the aspx page. I added "Textboxes" and "radiobuttons" (from Web Forms toolbox) to the aspx file on top of the html tables. I compiled and run the program. Textboxes are out of place and radio buttons are missing. Can anyone please tell me know why the controls are out of place/missing? Any help will be appreciated.

    S V 2 Replies Last reply
    0
    • S skinnyreptile

      I have a word document which contains a few tables. I saved the .doc file to a .html file in Word 2000, then I copied the HTML code over to my ASP project within the "BODY" of the aspx page. I added "Textboxes" and "radiobuttons" (from Web Forms toolbox) to the aspx file on top of the html tables. I compiled and run the program. Textboxes are out of place and radio buttons are missing. Can anyone please tell me know why the controls are out of place/missing? Any help will be appreciated.

      S Offline
      S Offline
      Stephan Pilz
      wrote on last edited by
      #2

      Hello, I think you have added the Textboxes and Radios with absolut positioning. This is default. You should remove all position tags from the textboxes and radios in the html source view and set the body to MS_POSITIONING="GridLayout". Greetings from Stephan

      S 1 Reply Last reply
      0
      • S Stephan Pilz

        Hello, I think you have added the Textboxes and Radios with absolut positioning. This is default. You should remove all position tags from the textboxes and radios in the html source view and set the body to MS_POSITIONING="GridLayout". Greetings from Stephan

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

        Hi Stephan, Thank you for your help. I followed what you said, but all textboxes and radios shifted to the left of the screen. Then, I moved them to the positions I wanted and the position tags appears again in HTML. Is there anyway to pre-set the POSITION to "relative" before I relocate the textboxes and radios. I can still changed the POSITION to "relative" and adjust the LEFT px manually one by one to force all controls in it's positions but it's kind of cumbersome. Please let me know if you can think of another solutions. Thanks!

        S 1 Reply Last reply
        0
        • S skinnyreptile

          Hi Stephan, Thank you for your help. I followed what you said, but all textboxes and radios shifted to the left of the screen. Then, I moved them to the positions I wanted and the position tags appears again in HTML. Is there anyway to pre-set the POSITION to "relative" before I relocate the textboxes and radios. I can still changed the POSITION to "relative" and adjust the LEFT px manually one by one to force all controls in it's positions but it's kind of cumbersome. Please let me know if you can think of another solutions. Thanks!

          S Offline
          S Offline
          Stephan Pilz
          wrote on last edited by
          #4

          Hm, Maybe I misunderstood you. I thought, you position the elements with a table. That is the way, that I use. The Form is Gridlayout, the elements will be positioned via a unvisible table (border=0). I hope that helps. Stephan

          S 1 Reply Last reply
          0
          • S Stephan Pilz

            Hm, Maybe I misunderstood you. I thought, you position the elements with a table. That is the way, that I use. The Form is Gridlayout, the elements will be positioned via a unvisible table (border=0). I hope that helps. Stephan

            S Offline
            S Offline
            skinnyreptile
            wrote on last edited by
            #5

            Hi Stephan, You are right, these textboxes and radios are localed in a table. But below the table, I also have a few buttons and textboxes. If I don't use relative positioning, all these controls move to the left of the screen as I described before. Please let me know if you can help. Thank you! Vito

            S 1 Reply Last reply
            0
            • S skinnyreptile

              Hi Stephan, You are right, these textboxes and radios are localed in a table. But below the table, I also have a few buttons and textboxes. If I don't use relative positioning, all these controls move to the left of the screen as I described before. Please let me know if you can help. Thank you! Vito

              S Offline
              S Offline
              Stephan Pilz
              wrote on last edited by
              #6

              Hi, I don't use any positioning, no relative no absolut. Here is an example: <table border=0 width=100%>  <tr>   <td><asp:label id=LB_one runat=server></asp:label></td>   <td><asp:textbox id=TB_one runat=server></asp:textbox></td>   <td>&nbsp;</td>  </tr>  <tr>   <td><hr></td>  </tr>  <tr>   <td>&nbsp;</td>   <td><asp:label id=LB_two runat=server></asp:label></td>   <td><asp:textbox id=TB_two runat=server></asp:textbox></td>  </tr> </table> If you set the table cells (td's) with a alignment and/or width, you can do a absolut position of each element. Hope that helps. Happy weekend. Stephan

              S 1 Reply Last reply
              0
              • S Stephan Pilz

                Hi, I don't use any positioning, no relative no absolut. Here is an example: <table border=0 width=100%>  <tr>   <td><asp:label id=LB_one runat=server></asp:label></td>   <td><asp:textbox id=TB_one runat=server></asp:textbox></td>   <td>&nbsp;</td>  </tr>  <tr>   <td><hr></td>  </tr>  <tr>   <td>&nbsp;</td>   <td><asp:label id=LB_two runat=server></asp:label></td>   <td><asp:textbox id=TB_two runat=server></asp:textbox></td>  </tr> </table> If you set the table cells (td's) with a alignment and/or width, you can do a absolut position of each element. Hope that helps. Happy weekend. Stephan

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

                Thanks. You have a good weekend too.

                1 Reply Last reply
                0
                • S skinnyreptile

                  I have a word document which contains a few tables. I saved the .doc file to a .html file in Word 2000, then I copied the HTML code over to my ASP project within the "BODY" of the aspx page. I added "Textboxes" and "radiobuttons" (from Web Forms toolbox) to the aspx file on top of the html tables. I compiled and run the program. Textboxes are out of place and radio buttons are missing. Can anyone please tell me know why the controls are out of place/missing? Any help will be appreciated.

                  V Offline
                  V Offline
                  Vasudevan Deepak Kumar
                  wrote on last edited by
                  #8

                  Hi: When you save Word document to HTML page there are lot of word specific tags and definitions. There are freeware editors like HTML-Kit (http://www.chami.com/html-kit/[^]) which has plugins to strip surplus word 2000 tags. Then you can use the cleaned up HTML in your ASP.NET application. Did this help you? Deepak Kumar Vasudevan Personal Web: http://www24.brinkster.com/lavanyadeepak/default.asp I Blog At: http://deepak.blogdrive.com/

                  S 1 Reply Last reply
                  0
                  • V Vasudevan Deepak Kumar

                    Hi: When you save Word document to HTML page there are lot of word specific tags and definitions. There are freeware editors like HTML-Kit (http://www.chami.com/html-kit/[^]) which has plugins to strip surplus word 2000 tags. Then you can use the cleaned up HTML in your ASP.NET application. Did this help you? Deepak Kumar Vasudevan Personal Web: http://www24.brinkster.com/lavanyadeepak/default.asp I Blog At: http://deepak.blogdrive.com/

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

                    Thanks for helping me! It really help!

                    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