![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||||
| |||||
|
|
Hello, I work with ASP.NET and I never liked the way some controls are rendered. Fortunately .NET 3.5 has a new control, ListView, which lets me render my HTML code the way I want. |
|
I need do display tabular data on various pages of a web site. Should I use tables? Should I use lists? What other option is best and which should I use? |
|
And if I use a table what is the cleaner and better table code I should have? |
|
For example, should I consider this a good code: |
|
div class="PrettyGridView" id="GridView1" div class="AspNet-GridView" div class="AspNet-GridView-Pagination AspNet-GridView-Top" a href="javascript:__doPostBack('GridView1','Page$1' )">1</a a href="javascript:__doPostBack('GridView1','Page$2' )">2</a span>3</span /div table cellpadding="0" cellspacing="0" summary="" thead tr th scope="col"><a href="javascript:__doPostBack('GridView1','Sort $Operation')">Operation</a></th th scope="col"><a href="javascript:__doPostBack('GridView1','Sort$Re ps')">Repetitions</ a></th th scope="col"><a href="javascript:__doPostBack('GridView1','Sort$Du ration')">Total test</a></th th scope="col"><a href="javascript:__doPostBack('GridView1','Sort$Av erage')">Average</ a></th /tr /thead tbody tr td>Sin</td td>27124</td td>31</td td>1.1521</td /tr tr class="AspNet-GridView-Alternate" td>Sinh</td td>19777</td td>31</td td>1.5801</td /tr /tbody /table div class="AspNet-GridView-Pagination AspNet-GridView-Bottom" a href="javascript:__doPostBack('GridView1','Page$1' )">1</a a href="javascript:__doPostBack('GridView1','Page$2' )">2</a span>3</span /div /div /div Thanks, Miguel |
![]() |
| Thread Tools | |
| Display Modes | |
| |