Hi all,
I understand that if I use a dataset, it wraps the <table> tag around the code. However, I do not want the <tr> and the <td> tag that it seems to add as well. Here is what the HTML output looks like if I use a data set
<table id="dlMailingList" cellspacing="0" headerte="" borrder="0">
<tr>
<td>
<caption> Username's Mailing Lists</caption>
<tr>
<th id="itemdelete">Click X to Delete</th> <th id="itemdescription"> <a id="dlMailingList__ctl0_lstDes" href="javascript:__doPostBack('dlMailingList$_ctl0$lstDes','')">Description</a></th>
<th id="itemcount">
<a id="dlMailingList__ctl0_lstCount" href="javascript:__doPostBack('dlMailingList$_ctl0$lstCount','')">Count</a></th>
</tr>
</td>
</tr>
In the above code, the <table> tag, the opening <tr>, <td> tags the closing </tr>, </td> tags are generated by the dataset. The other <tr>, <caption> and <th> tags are part of the ASPX page that was coded.
I do no want the opening and closing <tr><td> tags generated automatically by the dataset at all. I have a CSS that manipulates the entire look and these tags break it down. Is there any way I can manipulate the output of the dataset HTML to eliminate tags that I don't want. If not, what are my options in getting the data into the format that I want.
Thanks.
I understand that if I use a dataset, it wraps the <table> tag around the code. However, I do not want the <tr> and the <td> tag that it seems to add as well. Here is what the HTML output looks like if I use a data set
<table id="dlMailingList" cellspacing="0" headerte="" borrder="0">
<tr>
<td>
<caption> Username's Mailing Lists</caption>
<tr>
<th id="itemdelete">Click X to Delete</th> <th id="itemdescription"> <a id="dlMailingList__ctl0_lstDes" href="javascript:__doPostBack('dlMailingList$_ctl0$lstDes','')">Description</a></th>
<th id="itemcount">
<a id="dlMailingList__ctl0_lstCount" href="javascript:__doPostBack('dlMailingList$_ctl0$lstCount','')">Count</a></th>
</tr>
</td>
</tr>
In the above code, the <table> tag, the opening <tr>, <td> tags the closing </tr>, </td> tags are generated by the dataset. The other <tr>, <caption> and <th> tags are part of the ASPX page that was coded.
I do no want the opening and closing <tr><td> tags generated automatically by the dataset at all. I have a CSS that manipulates the entire look and these tags break it down. Is there any way I can manipulate the output of the dataset HTML to eliminate tags that I don't want. If not, what are my options in getting the data into the format that I want.
Thanks.