<connectionStrings>
<!-- add name="ConnectionString" connectionString="Password=[password];Persist Security Info=True;User ID=[id];Initial Catalog=[database name];Data Source=[local]" providerName="System.Data.SqlClient"/ -->
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|isBoard.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
protected void repList_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (repList.Items.Count < 1) { if (e.Item.ItemType == ListItemType.Footer) { Label lblFooter = (Label)e.Item.FindControl("lblEmptyData"); lblFooter.Visible = true; } } }
<FooterTemplate> <tr> <td colspan="3"><asp:Label ID="lblEmptyData" runat="server" Text="내용이 없습니다." Visible="false"></asp:Label></td> </tr> </table>