Ejemplo n.º 1
0
 void GetContent(String id)
 {
     DatabaseMethods db = new DatabaseMethods();
     db.OpenConnection();
     //rpt_Icerik.DataSource = db.GetDataReader("Select Baslik , Icerik from Makale Where MakaleId =" + a);
     rpt_Icerik.DataSource = db.GetDataTable("Select Baslik , Icerik from Makale Where MakaleId =" + a);
     rpt_Icerik.DataBind();
     db.CloseConnection();
 }
Ejemplo n.º 2
0
 protected void rptMakaleOzet_ItemDataBound(object sender, RepeaterItemEventArgs e)
 {
     DatabaseMethods db = new DatabaseMethods();
     db.OpenConnection();
     DataList dl1 = (DataList)e.Item.FindControl("dl_Tags");
     dl1.DataSource = db.GetDataTable("SELECT e.EtiketAd FROM Makale m , MakaleEtiket me , Etiket e WHERE me.MakaleId = m.MakaleId AND me.EtiketId = e.EtiketId AND m.MakaleId = " + DataBinder.Eval(e.Item.DataItem, "MakaleId").ToString());
     dl1.DataBind();
     db.CloseConnection();
 }