Concatenate datalist variables with javascript and html

Discussion in 'ASP .Net' started by Luis Esteban Valencia, Jan 20, 2005.

  1. 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/
     
    Luis Esteban Valencia, Jan 20, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nevyn Twyll
    Replies:
    8
    Views:
    1,881
  2. idiotprogrammer
    Replies:
    4
    Views:
    1,141
    Joseph Kesselman
    Mar 5, 2007
  3. NotGiven
    Replies:
    7
    Views:
    360
    Dr John Stockton
    Jul 24, 2003
  4. lance-news
    Replies:
    6
    Views:
    91
  5. Carlos

    Concatenate/De-Concatenate

    Carlos, Oct 12, 2012, in forum: VHDL
    Replies:
    10
    Views:
    891
Loading...

Share This Page