Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Concatenate datalist variables with javascript and html

Reply
Thread Tools

Concatenate datalist variables with javascript and html

 
 
Luis Esteban Valencia
Guest
Posts: n/a
 
      01-20-2005
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



<aspataList 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>
</aspataList>

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/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenate/De-Concatenate Carlos VHDL 10 10-24-2012 01:04 PM
concatenate several xml files into one big xml/html file? idiotprogrammer XML 4 03-05-2007 06:43 PM
concatenate variables during looping question lance-news Perl Misc 6 01-29-2006 10:08 PM
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM
concatenate in Javascript function? simple field validation funciton not working - needs to concat field name with object NotGiven Javascript 7 07-24-2003 11:44 AM



Advertisments