By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 992 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

HTML Table CSS

P: n/a
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 !

Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Not sure if you are using DataGrid??
Pls post some code..

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

Vinay

"Andre" wrote:
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 !


Nov 19 '05 #2

P: n/a
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">
<...>


"vinay" <vi***@discussions.microsoft.com> a écrit dans le message de
news:3A**********************************@microsof t.com...
Not sure if you are using DataGrid??
Pls post some code..

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

Vinay

"Andre" wrote:
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 !


Nov 19 '05 #3

P: n/a
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

"Andre" wrote:
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">
<...>


"vinay" <vi***@discussions.microsoft.com> a écrit dans le message de
news:3A**********************************@microsof t.com...
Not sure if you are using DataGrid??
Pls post some code..

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

Vinay

"Andre" wrote:
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 !



Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.