Hi all,
I just posted this question before and realized that I had "datalist" listed as "dataset". I tried deleting that post but could not. It has been that kind of day. Anyway..
I understand that if I use a datalist, 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 datalist
<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 datalist. 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 datalist 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 datalist 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 just posted this question before and realized that I had "datalist" listed as "dataset". I tried deleting that post but could not. It has been that kind of day. Anyway..
I understand that if I use a datalist, 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 datalist
<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 datalist. 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 datalist 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 datalist 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.