Monday 20 April 2009

jQuery Plugin For Fixing ASP.NET Tables

When asp.net renders a table it puts the header cells into the tbody like shown below.

<table id="table" border="0">
<tbody><tr>
<th>Header cell</th>
</tr><tr>
<td>Cell</td>
</tr>
</tbody></table>

I have written a jquery plugin which will fix this issue.

http://code.google.com/p/jqueryaspxtablefix/

It takes the first row and adds moves it into a thead element.

No comments:

Post a Comment