Results 1 to 6 of 6

Thread: [RESOLVED] form layout issue

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Location
    Bonny Scotland
    Posts
    141

    Resolved [RESOLVED] form layout issue

    Hi,

    I currently have a webform that has an HTML table with three rows and two columns. Each row contains a label in one column and a radiobuttonlist in the other.
    The label and radiobutton list on the second row are not visible until the first radiobuttonlist has the yes option checked and a postback is performed. This works fine and displays the second row controls.

    Unfortunately when the second row controls aren't visible there is a gap where they should be which breaks up the flow of the form.

    What i'd like to know is if there is some way that i can close up the gap whilst the controls aren't visible.

    Thanks

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: form layout issue

    How are you hiding the row of controls right now?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Location
    Bonny Scotland
    Posts
    141

    Re: form layout issue

    At present i'm not hiding the row, wasn't sure how that can be done.
    i'm just setting the visible property of the control's to false, and changing them to true on the postback if the condition is met.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: form layout issue

    Set the <tr> to be runat="server" and with some ID. Then hide the TR itself.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Location
    Bonny Scotland
    Posts
    141

    Re: form layout issue

    Thank's very much,

    Thats exactly what i was looking for. I didn't realise that this could be done as easily as that, should prove useful in the future.

    Many thanks again.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] form layout issue

    YW.

    Add [resolved] to the thread title.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width