HTML Table CSS

  • Thread starter Thread starter Andre
  • Start date Start date
A

Andre

Hi,

I have a <ItemTemplate> with a HTML Table inside, "id=commercial" who
display Ads on our site.

But for each Store, i have to put a different CSS Class name to my
Table, but all the table have the same name "commercial", so my Javascript
function does'nt work.

I try different way to do this, but can't find the solution.

I found a solution using <asp:table>, but if i put the <asp:table>
inside my Datagrid i receive this error : "The active schema does not
support the element 'asp:table'"

Did someone have any idea ?

Thank you !
 
Not sure if you are using DataGrid??
Pls post some code..

If you are using Datagrid,
try manuplating in ItemDatabound event.

Vinay
 
Here's a part of my code..

<asp:datagrid id="Datagrid1" runat="server" onitemdatabound="item_bound">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<Table class="BBBX" id="Commercial">
<...>
 
Andre

Try writing a Server Side public function

SetTable()
In that create the dynamic tables with different ID's.

Try it..

<asp:datagrid id="Datagrid1" runat="server" onitemdatabound="item_bound">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<%=SetTable()%>
Vinay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top