471,309 Members | 1,050 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

placeholder in datalist

How do I replace the place holder
<asp:Content ID="content2" ContentPlaceHolderID="leadercontent"
runat="Server">
<asp:DataList ID="DataList2" runat="server"
OnItemDataBound = ddccd *********??????????
CellPadding="1"
CellSpacing="1"
RepeatColumns="1"
RepeatDirection="vertical"
DataSourceID="SqlDataSource1"
Width="199px"

<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="3" width="202">
<tr>
<asp:PlaceHolder ID="PlaceHolder1"
runat="server"></asp:PlaceHolder>
</tr>
</table>
</ItemTemplate>

</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Spotbowlcom %>"
SelectCommand="leaderBoard"
SelectCommandType="StoredProcedure">
</asp:SqlDataSource>

</asp:Content>

void Item_Bound(Object sender, DataListItemEventArgs e)
{
// Retrieve the Label control in the current DataListItem.

PlaceHolder PlaceHolder1 =
(PlaceHolder)e.Item.FindControl("PlaceHolder1");
PlaceHolder1.Controls. **********NOT SURE from here***********
StringBuilder sScript = new StringBuilder();
sScript.Append("<td align=\"center\" valign=\"middle\" width=\"30\"
height=\"20\" class=\"<%# getClass() %>\">1</td>" + "\r\n");

sScript.Append("<td align=\"left\" valign=\"middle\" class=\"" +
mc.GetClass() + "\">“'" + advertiser + "'”</td>" + "\r\n");
return (sScript.ToString());

}

Jan 22 '06 #1
0 1001

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Chris Ericoli | last post: by
2 posts views Thread by Chad Crowder | last post: by
3 posts views Thread by Wee Bubba | last post: by
6 posts views Thread by Paul | last post: by
3 posts views Thread by Mirek Endys | last post: by
1 post views Thread by Stuart Shay | last post: by
3 posts views Thread by Crazy Cat | last post: by
reply views Thread by rosydwin | last post: by

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.