merhaba arkadaşlar
firebird connection nesnesini kullanarak asp.net te veri işleme ve listelemeye örnek vermek istiyorum
çünkü şuan çok yaygın larak kullanılan firebird veri tabanı için çok fazla kaynak yok ayrıca
delphiden c# a geçen arkadaşlar içinde uygun bir örnek olacağını düşünüyorum
firebird veri tabanından veriyi çekebilmek için
http://www.firebirdsql.com - www.firebirdsql.com adreisnden ve http://www.dotnetfirebird.com - www.dotnetfirebird.com adresinden .net için provider 'ini indirmelisiniz zaten diğer eklentilerde orada mevcut
connectionstrin oluşturulmuş durumda ve sadece
firebirdsql.data.firebirdsql refaransının nasıl kullanıldığını bu örnekle göstermek istedim
saygılarımla
bu konuyla ilgilenen arkadaşlar için
sorcekodlarınıda full gönderebilirim tabi diğer çalışmalarıda
mailto:serefkoca@serefkoca.com - serefkoca@serefkoca.com
default.aspx.cs kodları
----------------------------------------------------------------------------------------------
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Panel2.Visible = false;
}
protected void Button1_Click(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(3000);
Panel2.Visible = true;
}
protected void Button2_Click(object sender, EventArgs e)
{
Panel2.Visible = false;
}
protected void Button4_Click(object sender, EventArgs e)
{
FirebirdSql.Data.Firebird.FbConnection BAGLAN =new FirebirdSql.Data.Firebird.FbConnection();
BAGLAN.ConnectionString = ConfigurationManager.ConnectionStrings["netsimgun"].ToString(); // burada web.config dosyasındaki connectionstring i çekiyruz.....
string sorgu="SELECT FIRMA_ADI,ADI_SOYADI,EMAIL FROM FIRMALAR";
FirebirdSql.Data.Firebird.FbDataAdapter efadap = new FirebirdSql.Data.Firebird.FbDataAdapter(sorgu,BAGLAN);
DataSet ds = new DataSet();
efadap.Fill(ds);
this.GridView1.DataSource = ds.Tables[0];
this.DataBind();
}
protected void Button10_Click(object sender, EventArgs e)
{
FirebirdSql.Data.Firebird.FbConnection BAGLAN = new FirebirdSql.Data.Firebird.FbConnection();
BAGLAN.ConnectionString = ConfigurationManager.ConnectionStrings["netsimgun"].ToString();
//FirebirdSql.Data.Firebird.FbParameter parametre;
string sorgu = "Select F.ACIKLAMA, TE.TELEFON_ADI, TE.ULKE_KODU, TE.ALAN_KODU, TE.TELEFON, TE.DAHILI From FIHRIST F Join TELELINK T on (F.SINTERNAL = T.SINTERNAL) and (F.INTERNAL = T.INTERNAL)Join TELEFONL TE on (T.TELEFON_NO = TE.TELEFON_NO)Order By F.ACIKLAMA Asc, F.FIHRIST_NO Asc";
FirebirdSql.Data.Firebird.FbDataAdapter efadap = new FirebirdSql.Data.Firebird.FbDataAdapter(sorgu, BAGLAN);
DataSet ds = new DataSet();
//parametre = new FirebirdSql.Data.Firebird.FbParameter("@F.ACIKLAMA", FirebirdSql.Data.Firebird.FbDbType.Char, 50);
efadap.Fill(ds);
this.GridView1.DataSource = ds.Tables[0];
this.DataBind();
}
protected void Button1_Click1(object sender, EventArgs e)
{
FirebirdSql.Data.Firebird.FbConnection BAGLAN = new FirebirdSql.Data.Firebird.FbConnection();
BAGLAN.ConnectionString = ConfigurationManager.ConnectionStrings["netsimgun"].ToString();
string sorgu = "Select STKKRT.STOK_NO, STKKRT.STOK_KODU, STKKRT.STOK_ADI, STKKRT.STOK_TURU, STKKRT.BIRIM, STKKRT.OZEL_KOD, V.GIRIS_ORANI, V.CIKIS_ORANI From STOKKART STKKRT Join VERGORAN V on (STKKRT.KDV_ORAN_NO = V.VERGI_ORAN_NO)Where STKKRT.STOK_NO > 0 Order By STKKRT.STOK_ADI Asc";
FirebirdSql.Data.Firebird.FbDataAdapter efadap = new FirebirdSql.Data.Firebird.FbDataAdapter(sorgu, BAGLAN);
DataSet ds = new DataSet();
efadap.Fill(ds);
this.GridView1.DataSource = ds.Tables[0];
this.DataBind();
}
web.congif kodları..........................
---------------------
5 Haziran 2012 Salı
asp.net firebird tuhaf bir yapı
merhaba arkadaşlar
firebird connection nesnesini kullanarak asp.net te veri işleme ve listelemeye örnek vermek istiyorum
çünkü şuan çok yaygın larak kullanılan firebird veri tabanı için çok fazla kaynak yok ayrıca
delphiden c# a geçen arkadaşlar içinde uygun bir örnek olacağını düşünüyorum
firebird veri tabanından veriyi çekebilmek için
http://www.firebirdsql.com - www.firebirdsql.com adreisnden ve http://www.dotnetfirebird.com - www.dotnetfirebird.com adresinden .net için provider 'ini indirmelisiniz zaten diğer eklentilerde orada mevcut
connectionstrin oluşturulmuş durumda ve sadece
firebirdsql.data.firebirdsql refaransının nasıl kullanıldığını bu örnekle göstermek istedim
saygılarımla
bu konuyla ilgilenen arkadaşlar için
sorcekodlarınıda full gönderebilirim tabi diğer çalışmalarıda
mailto:serefkoca@serefkoca.com - serefkoca@serefkoca.com
default.aspx.cs kodları
----------------------------------------------------------------------------------------------
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Panel2.Visible = false;
}
protected void Button1_Click(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(3000);
Panel2.Visible = true;
}
protected void Button2_Click(object sender, EventArgs e)
{
Panel2.Visible = false;
}
protected void Button4_Click(object sender, EventArgs e)
{
FirebirdSql.Data.Firebird.FbConnection BAGLAN =new FirebirdSql.Data.Firebird.FbConnection();
BAGLAN.ConnectionString = ConfigurationManager.ConnectionStrings["netsimgun"].ToString(); // burada web.config dosyasındaki connectionstring i çekiyruz.....
string sorgu="SELECT FIRMA_ADI,ADI_SOYADI,EMAIL FROM FIRMALAR";
FirebirdSql.Data.Firebird.FbDataAdapter efadap = new FirebirdSql.Data.Firebird.FbDataAdapter(sorgu,BAGLAN);
DataSet ds = new DataSet();
efadap.Fill(ds);
this.GridView1.DataSource = ds.Tables[0];
this.DataBind();
}
protected void Button10_Click(object sender, EventArgs e)
{
FirebirdSql.Data.Firebird.FbConnection BAGLAN = new FirebirdSql.Data.Firebird.FbConnection();
BAGLAN.ConnectionString = ConfigurationManager.ConnectionStrings["netsimgun"].ToString();
//FirebirdSql.Data.Firebird.FbParameter parametre;
string sorgu = "Select F.ACIKLAMA, TE.TELEFON_ADI, TE.ULKE_KODU, TE.ALAN_KODU, TE.TELEFON, TE.DAHILI From FIHRIST F Join TELELINK T on (F.SINTERNAL = T.SINTERNAL) and (F.INTERNAL = T.INTERNAL)Join TELEFONL TE on (T.TELEFON_NO = TE.TELEFON_NO)Order By F.ACIKLAMA Asc, F.FIHRIST_NO Asc";
FirebirdSql.Data.Firebird.FbDataAdapter efadap = new FirebirdSql.Data.Firebird.FbDataAdapter(sorgu, BAGLAN);
DataSet ds = new DataSet();
//parametre = new FirebirdSql.Data.Firebird.FbParameter("@F.ACIKLAMA", FirebirdSql.Data.Firebird.FbDbType.Char, 50);
efadap.Fill(ds);
this.GridView1.DataSource = ds.Tables[0];
this.DataBind();
}
protected void Button1_Click1(object sender, EventArgs e)
{
FirebirdSql.Data.Firebird.FbConnection BAGLAN = new FirebirdSql.Data.Firebird.FbConnection();
BAGLAN.ConnectionString = ConfigurationManager.ConnectionStrings["netsimgun"].ToString();
string sorgu = "Select STKKRT.STOK_NO, STKKRT.STOK_KODU, STKKRT.STOK_ADI, STKKRT.STOK_TURU, STKKRT.BIRIM, STKKRT.OZEL_KOD, V.GIRIS_ORANI, V.CIKIS_ORANI From STOKKART STKKRT Join VERGORAN V on (STKKRT.KDV_ORAN_NO = V.VERGI_ORAN_NO)Where STKKRT.STOK_NO > 0 Order By STKKRT.STOK_ADI Asc";
FirebirdSql.Data.Firebird.FbDataAdapter efadap = new FirebirdSql.Data.Firebird.FbDataAdapter(sorgu, BAGLAN);
DataSet ds = new DataSet();
efadap.Fill(ds);
this.GridView1.DataSource = ds.Tables[0];
this.DataBind();
}
web.congif kodları..........................
---------------------
Kaydol:
Kayıt Yorumları (Atom)
Hiç yorum yok:
Yorum Gönder