473,320 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Concatenate datalist variables with javascript and html

Hello I am in big troubles trying to concatenate this
I have a datalist

Private Sub llenardatalistpartidos(ByVal idfase As Int32, ByVal iddeporte As
Int32)

Dim dr As sqldatareader

dr = objconsultas.traerpartidosxfasexdeportedatareader( idfase, iddeporte)

datalistpartidos.DataSource = dr

datalistpartidos.DataBind()

End Sub

I am trying to concatenate in html with javascript

<asp:DataList id="datalistpartidos" runat="server" GridLines="Vertical"
CellPadding="3" BorderWidth="1px"
BorderColor="#999999" BackColor="White" BorderStyle="None">
<SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle
BackColor="Gainsboro"></AlternatingItemStyle>
<ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
<ItemTemplate>
<TABLE id="Table6" borderColor="navy" cellSpacing="0"
cellPadding="0" width="300" border="1">
<TR onClick="servOC(""&<%# Container.DataItem("idpartido")%>&"
",""/partidos.aspx?idpartido=""&<%# Container.DataItem("idpartido")%>&"
",'#cad9ea')">
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo1")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo2")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fecha")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fechareal")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("horareal")%></TD>
<TD borderColor="#ffffff"></TD>
<TD borderColor="#ffffff"></TD>
</TR>
<TR style="display:none" id=ihtr & <%#
Container.DataItem("idpartido")%>>
<TD borderColor="#ffffff" colSpan="7"><iframe src="" id=ihif &
<%# Container.DataItem("idpartido")%> width="100%"></iframe></TD>
</TR>
</TABLE>
</ItemTemplate>
<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle>
<HeaderStyle Font-Bold="True" ForeColor="White"
BackColor="#000084"></HeaderStyle>
</asp:DataList>

The result has to be something like this

<tr onClick="servOC(1,'/PARTIDOS.ASPX?IDPARTIDO=1','#cad9ea'<tr
style="display:none" id="ihtr1"><td bgcolor="#ECECD9" colspan="9"><iframe
frameborder="0" width="100%" id="ihif1"></iframe></td></tr>
--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
Nov 19 '05 #1
0 2130

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ani | last post by:
I have few multiple choice questions that are paginated. The button that takes the user to the next page is a hyperlink on a image. I am using standard <a href ><image> tag .My aspx page contains...
7
by: Steve Klett | last post by:
I would like to have DHTML on my DataList so that when I hover over a cell, it will change colors. I can't find a way to get onMouseOver into the generated <td> from a DataList. There must be ...
1
by: mahsa | last post by:
H data I'm binding to the DataList is information about products in my product database. Perhaps passed in the QueryString to this page is a ProductID. I might want to make the item in the DataList...
4
by: Miguel Dias Moura | last post by:
Hello, I created a datalist in an ASP.Net / VB page. I display the image and price of a few products. When a user clicks an image I want to load the page "detail.aspx?number=id" and send the...
4
by: Nathan Sokalski | last post by:
I have a DataList that has an Button as one of the controls in it's ItemTemplate. The Button has a CommandName="delete" attribute, but when I click it the DeleteCommand event doesn't even get...
1
by: WB | last post by:
Hi, I would like to do something like this page: http://www.stocklayouts.com/Products/Postcard/Postcard-Template-Design-Library.aspx?kwid=38 Notice when you mouse-over any of the icons under...
0
by: =?Utf-8?B?RWQ=?= | last post by:
I came accross this weird issue. I have two development enviornments . One is my Local machine and the other is the server. I have a page that displays data in Datalist(bunch of text and...
1
by: Brock | last post by:
First note that I am using Framework 1.1. I have an .aspx page that is displaying a list of employees, but only the Employee Number, First Name, Last Name, and Title. It is working great. I...
1
by: Brock | last post by:
Thanks in advance... (you can see a screenshot of what my form looks like currently at http://www.juggernautical.com/DataGrid.jpg - the Datalist is super-imposed in 'design view' but the DataGrid...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.