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. asp.net page size (height and width of tables are dynamicaly changed) - a very serious problem

asp.net page size (height and width of tables are dynamicaly changed) - a very serious problem

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpannouncement
6 Posts 4 Posters 1 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.
  • C Offline
    C Offline
    codelinks
    wrote on last edited by
    #1

    hi guys i am having a asp.net application which is done in .net 2003 version, the problem here , i am having a text box with a range validator control for that.. when i changed controltovaliate property of the validator , the size of all the tables in the asp.net page is getting changed ,,such that the alignment is totally collapsed .. i have no idea how the sizes of tables (height and width of tables are dynamically changed) regards

    winnie

    G C 2 Replies Last reply
    0
    • C codelinks

      hi guys i am having a asp.net application which is done in .net 2003 version, the problem here , i am having a text box with a range validator control for that.. when i changed controltovaliate property of the validator , the size of all the tables in the asp.net page is getting changed ,,such that the alignment is totally collapsed .. i have no idea how the sizes of tables (height and width of tables are dynamically changed) regards

      winnie

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

      That's normal behaviour for tables. The size of the cells in a table are calculated from the size of the content in the cells. If you put something in a cell that is larger than the previously calculated size, the cell will grow and the other cells will be resized to give it space.

      codelinks wrote:

      a very serious problem

      How serious could it be? Serious enough to mention in the subject? :zzz:

      --- single minded; short sighted; long gone;

      C 1 Reply Last reply
      0
      • G Guffa

        That's normal behaviour for tables. The size of the cells in a table are calculated from the size of the content in the cells. If you put something in a cell that is larger than the previously calculated size, the cell will grow and the other cells will be resized to give it space.

        codelinks wrote:

        a very serious problem

        How serious could it be? Serious enough to mention in the subject? :zzz:

        --- single minded; short sighted; long gone;

        C Offline
        C Offline
        codelinks
        wrote on last edited by
        #3

        Guffa wrote:

        How serious could it be? Serious enough to mention in the subject?

        coz i didnt find any solution for this ,, can u tell what will be the solution for the above problem..

        winnie

        G P 2 Replies Last reply
        0
        • C codelinks

          Guffa wrote:

          How serious could it be? Serious enough to mention in the subject?

          coz i didnt find any solution for this ,, can u tell what will be the solution for the above problem..

          winnie

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

          codelinks wrote:

          coz i didnt find any solution for this

          Almost everyone that post here, does so because they can't find a solution. That doesn't make everything "very serious".

          codelinks wrote:

          can u tell what will be the solution for the above problem..

          Not without knowing anything more about how you use the tables. My first advice would of course be not to use table based layouts. They were great ten years ago, when there were no alternatives. Compared to the alternatives available today, they suck.

          --- single minded; short sighted; long gone;

          1 Reply Last reply
          0
          • C codelinks

            Guffa wrote:

            How serious could it be? Serious enough to mention in the subject?

            coz i didnt find any solution for this ,, can u tell what will be the solution for the above problem..

            winnie

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            Make them fixed width. Oh yuck - I can't believe I just recommended that. Seriously though, if you don't want the sizes to be recalculated you have to make them fixed width.

            Deja View - the feeling that you've seen this post before.

            1 Reply Last reply
            0
            • C codelinks

              hi guys i am having a asp.net application which is done in .net 2003 version, the problem here , i am having a text box with a range validator control for that.. when i changed controltovaliate property of the validator , the size of all the tables in the asp.net page is getting changed ,,such that the alignment is totally collapsed .. i have no idea how the sizes of tables (height and width of tables are dynamically changed) regards

              winnie

              C Offline
              C Offline
              ChrisKo 0
              wrote on last edited by
              #6

              You could set the validator Display property to "none" and use a ValidationSummary so you can move the error message into it's own table. This way, it's display doesn't affect your control layout.

              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