protected void Page_Load(object sender, EventArgs e)
        {
            DataSet1TableAdapters.HAKKIMDATableAdapter dt = new DataSet1TableAdapters.HAKKIMDATableAdapter();
            Repeater1.DataSource = dt.HakkımdaListele();
            Repeater1.DataBind();


            DataSet1TableAdapters.DENEYIMTableAdapter dt1 = new DataSet1TableAdapters.DENEYIMTableAdapter();
            Repeater2.DataSource = dt1.DeneyimListele();
            Repeater2.DataBind();

            DataSet1TableAdapters.EGITIMTableAdapter dt2 = new DataSet1TableAdapters.EGITIMTableAdapter();
            Repeater3.DataSource = dt2.EgitimListesi();
            Repeater3.DataBind();

            DataSet1TableAdapters.YETENEKLERTableAdapter dt3 = new DataSet1TableAdapters.YETENEKLERTableAdapter();
            Repeater4.DataSource = dt3.YetenekListele();
            Repeater4.DataBind();

            DataSet1TableAdapters.HOBILERTableAdapter dt4 = new DataSet1TableAdapters.HOBILERTableAdapter();
            Repeater5.DataSource = dt4.HobiListesi();
            Repeater5.DataBind();

            DataSet1TableAdapters.KONFERANSTableAdapter dt5 = new DataSet1TableAdapters.KONFERANSTableAdapter();
            Repeater6.DataSource = dt5.KonferansListele();
            Repeater6.DataBind();
        }
Esempio n. 2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (txtBaslik.Text != string.Empty && txtAltBaslik.Text != string.Empty && txtAciklama.Text != string.Empty && txtTarih.Text != string.Empty)
            {
                DataSet1TableAdapters.DENEYIMTableAdapter dt = new DataSet1TableAdapters.DENEYIMTableAdapter();
                dt.DeneyimEkle(txtBaslik.Text, txtAltBaslik.Text, txtAciklama.Text, txtTarih.Text);
                Response.Redirect("AdminDeneyimler.aspx");
            }

            else
            {
                foreach (Control ctrl in Form.Controls)
                {
                    if (ctrl is TextBox)
                    {
                        TextBox txt = (TextBox)ctrl;

                        if (txt.Text == string.Empty)
                        {
                            txt.BackColor = Color.PaleVioletRed;
                        }
                        else
                        {
                            txt.BackColor = Color.White;
                        }
                    }
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(Request.QueryString["ID"]);

            DataSet1TableAdapters.DENEYIMTableAdapter dt = new DataSet1TableAdapters.DENEYIMTableAdapter();
            dt.DeneyimSil(id);
            Response.Redirect("AdminDeneyimler.aspx");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request.QueryString["ID"]);

            txtID.Text    = id.ToString();
            txtID.Enabled = false;
            if (Page.IsPostBack == false)
            {
                DataSet1TableAdapters.DENEYIMTableAdapter dt = new DataSet1TableAdapters.DENEYIMTableAdapter();
                txtBaslik.Text    = dt.DeneyimGetir(Convert.ToInt32(id))[0].Baslik;
                txtAltBaslik.Text = dt.DeneyimGetir(Convert.ToInt32(id))[0].AltBaslik;
                txtAciklama.Text  = dt.DeneyimGetir(Convert.ToInt32(id))[0].Aciklama;
                txtTarih.Text     = dt.DeneyimGetir(Convert.ToInt32(id))[0].Tarih;
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     DataSet1TableAdapters.DENEYIMTableAdapter dt = new DataSet1TableAdapters.DENEYIMTableAdapter();
     Repeater1.DataSource = dt.DeneyimListele();
     Repeater1.DataBind();
 }
 protected void Button1_Click(object sender, EventArgs e)
 {
     DataSet1TableAdapters.DENEYIMTableAdapter dt = new DataSet1TableAdapters.DENEYIMTableAdapter();
     dt.DeneyimGuncelle(txtBaslik.Text, txtAltBaslik.Text, txtAciklama.Text, txtTarih.Text, Convert.ToInt32(txtID.Text));
     Response.Redirect("AdminDeneyimler.aspx");
 }