473,480 Members | 1,839 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

HTML Table CSS

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
3 1263
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2205
by: SteveJ | last post by:
All, Can someone help me solve the next step. First of all let me say I'm new to php. I pieced the following code together from samples I found on the net and a book I bought called PHP...
10
26845
by: john T | last post by:
Is there anyway to vertically center a html table using css in such a way it does not alter the html table. When I tryied it just screws up.
10
2276
by: Peter Kirk | last post by:
Hi there can someone please help me with creating dynamic content in a table? For example, see the below javascript and html - why is a new row not created in the table when I click the button?...
20
5592
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
5
4065
by: Andrew | last post by:
Hi, friends, In ASP, we use obj = CreateObject("com.dll") obj.GetHTMLText(inVal, outHTMLTxt1, outHTMLTxt2) to get different HTML strings based on input values. Then, we insert them into...
1
16924
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
2
2133
by: lynx129 | last post by:
Hi there , I have php script that works fine under my server but I dont know how to put the html code inside my site. feedback.html <html dir="rtl"> <head> <title> ????? ??? </title>...
7
3588
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference....
2
3037
by: sateeshchandrasanga | last post by:
Hi All, My HTML code is working fine in Firefox.But its not displaying any thing in IE.Can you help me in this problem.And in Google crown its displaying but not properly. ...
10
6931
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
0
7041
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6737
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6921
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4776
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4481
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.