Help me to design a Tables in ASP.NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davidson1
    New Member
    • Feb 2008
    • 144

    Help me to design a Tables in ASP.NET

    Hai friends,

    I am creating a website , for my institutions , where more than 5000 people were there...so i need to create properly.....

    I am using many dynamically created tables in ASP.NET(vb language)..(vis ual studio .net 2003)

    I have the following code , i have put sample color for cells or row but that was not attractive...

    I need the help of good web designer , who to design the dynamicaly created tables... please just put the attractive font or color or row to the cells...so that it will be Beautiful....I need
    it.. if it is useful... I will but the same for remaining dynamically created Tables...please help me...Any attractive table border....Dont worry about connection String or Sql data reader,..if u know any website , send me that also.....[/B]
    Coding:-

    Code:
    Dim row11 As New TableRow
    
    Dim celll1 As New TableCell
    
    Dim celll2 As New TableCell
    
    Dim celll3 As New TableCell
    
    Dim celll4 As New TableCell
    
    Dim celll5 As New TableCell
    
    Dim celll6 As New TableCell
    
    celll1.Text ="<font face=Arial size=5><b>"  &  "No" & "</font>"
    
    celll2.Text = "<font face=Arial size=5><b>" & "Name" & "</font>"
    
    celll3.Text = "<font face=Arial size=5><b>" & "Department" & "</font>"
    
    celll4.Text = "<font face=Arial size=5><b>" & "Role" & "</font>"
    
    row11.Cells.Add(celll1)
    
    row11.Cells.Add(celll3)
    
    row11.Cells.Add(celll4)
    
    row11.Cells.Add(celll5)
    
    tab.Rows.Add(row11)
    
    While rd.Read
    
    Dim row2 As New TableRow
    
    Dim cell1 As New TableCell
    
    Dim cell2 As New TableCell
    
    Dim cell3 As New TableCell
    
    Dim cell4 As New TableCell
    
    Dim cell5 As New TableCell
    
    cell1.Text = "<font face=Arial size=4><b>" & op & "<b></font>"
    
    op = op + 1
    
    'cell1.BorderStyle = BorderStyle.Inset
    
    'cell1.BorderWidth = Unit.Pixel(1)
    
    'cell1.BackColor = Color.Gold
    
    cell2.ColumnSpan = 1
    
    cell2.Text = "<font face=Arial size=4><b>" & rd(1) & "<b></font>"
    
    'cell2.BorderStyle = BorderStyle.Inset
    
    'cell2.BorderWidth = Unit.Pixel(1)
    
    cell2.ColumnSpan = 1
    
    ' cell2.BackColor = Color.Gold
    
    cell3.Text = "<font face=Arial size=4><b>" & rd(2) & "<b></font>"
    
    'cell2.BorderStyle = BorderStyle.Inset
    
    'cell2.BorderWidth = Unit.Pixel(1)
    
    cell2.ColumnSpan = 1
    
    cell4.Text = "<font face=Arial size=4><b>" & rd(3) & "<b></font>"
    
    'cell2.BorderStyle = BorderStyle.Inset
    
    'cell2.BorderWidth = Unit.Pixel(1)
    
    cell2.ColumnSpan = 1
    
    
    row2.Cells.Add(cell1)
    
    row2.Cells.Add(cell2)
    
    row2.Cells.Add(cell3)
    
    row2.Cells.Add(cell4)
    
    tab.Rows.Add(row2)
    
    End While
    
    Panel1.Controls.Add(tab)
    Davidson...

    Thanks in Advance...
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Just look at what other websites do and steal the idea.
    Like alternate colors between rows.

    Comment

    • davidson1
      New Member
      • Feb 2008
      • 144

      #3
      Thank u Plater ,

      if u Know could u send me, some that type of websites...

      Davidson

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Anything really, here's two that use really basic row differences.

        Newark Electronics - We’re a fast and reliable distributor of products and technology for electronic and industrial system design, maintenance, and repair. The right components for tomorrow’s success.


        Try looking at your bank's online banking webpage (or credit card or phone or anything else like that)

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          Originally posted by Plater
          Anything really, here's two that use really basic row differences.

          Newark Electronics - We’re a fast and reliable distributor of products and technology for electronic and industrial system design, maintenance, and repair. The right components for tomorrow’s success.


          Try looking at your bank's online banking webpage (or credit card or phone or anything else like that)
          I also recommend surfing the web for nice looking tables.

          You could also use the colour wheel to choose colours that look good...typicall y if you choose colours opposite to each other in the colour wheel they will complement each other....this tends to make things look good. If you go to that link and click on the colours in the colour wheel it will show you what they look like together.

          -Frinny

          Comment

          Working...