Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string conn = ConfigurationManager.ConnectionStrings["myConnectionString"].ConnectionString;
        p = new Posting(conn);
        int pcount = p.CountPosts();
        posts = p.GetPosts();

        Repeater1.DataSource = posts;
        Repeater1.DataBind();

        lblPCount.Text = pcount.ToString();
    }