Esempio n. 1
0
 private void Page_Load(object sender, System.EventArgs e)
 {
     custObj = new Customer();
     custObj.DatabaseName = "Banking";
     custObj.ServerName   = "localhost";
     custObj.UserName     = "******";
     custObj.Password     = "******";
     custObj.AddVendor(10012, VName.Text, VAccNo.Text, VPhNo.Text, Vaddr.Text);
 }
        private void Page_Load(object sender, System.EventArgs e)
        {
            custObj = new Customer();

            custObj.DatabaseName = "Banking";
            custObj.ServerName   = "localhost";
            custObj.UserName     = "******";
            custObj.Password     = "******";
            long custId = Convert.ToInt64(Session["CustID"]);
            //Label1.Text = custId;


            SqlDataReader dr = custObj.GetAccounts(Convert.ToInt64(custId));

            int count = dr.FieldCount;

            Repeater1.DataSource = dr;
            Repeater1.DataBind();
        }