'Windows/ASP.NET'에 해당되는 글 2건

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

Posted by 아로스

 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>
Posted by 아로스
1

아로스

달력

05-19 00:02