Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

C#/ASP.NET Table control

Options
  • 13-04-2008 3:18am
    #1
    Registered Users Posts: 1,391 ✭✭✭


    Probably something real simple but how can I add an empty row to a table in ASP.NET?


Comments

  • Registered Users Posts: 1,391 ✭✭✭fatherdougalmag


    Never mind. Cell.Text = " " does the trick.


  • Registered Users Posts: 6,762 ✭✭✭WizZard


    Never mind. Cell.Text = " " does the trick.

    That's a bit of a hack, is there no better way?? What version of ASP.NET are you using?


  • Moderators, Science, Health & Environment Moderators Posts: 8,951 Mod ✭✭✭✭mewso


    Hack or not it's the best way to do it since any table with nothing in the cell will not be visible, in IE at least.


  • Moderators, Society & Culture Moderators Posts: 9,689 Mod ✭✭✭✭stevenmu


    Yep, it's not an ASP related problem, that will create the empy row no problem, the problem is that some browsers won't render it correctly.

    The other thing people do, apart from &nbsp, is to create a 1 pixel transparent gif and put that in the cell (IIRC firefox/mozilla will sometimes render the actual characters &nbsp instead of a blank space).


Advertisement