Arşiv Anasayfa ASP.NET Soruları
Sayfalar: 1
Kayıt hatası Gönderen: yakgul Tarih: 25 April 2008 11:54:41
iki tane webformu var. Birinci form anaform, üzerine bir tane buton bıraktım, o buton ile;

response.redirect('ikincifrm.aspx');

komutu ile ikinci formu açıyorum. Tasarım zamanı, FBConnection, FBDataadapter ve Dataset nesnelerini ikinci formda oluşturdum. Birinci formla veritabanı ve nesnelerin alakası yok. Program derleniyor çalışıyor, ikinci forma geçiyorum, kayıt butonuna basınca:

Server Error in '/DENEME' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 365:dsdeneme.Tables['denemeTBL'].Rows.Add(newRow);
Line 366:fbdataadapter1.Update(dsdeneme,'denemeTBL');Line 367:end;
Line 368:



diyor ve 366 numaralı satırı çiziyor.
Sorun nerede, nerede yanlış yapıyorum?
Ynt: Kayıt hatası Gönderen: erenalp Tarih: 28 April 2008 20:56:01
çok açık değil yazdıkların.kodları tam olarak yazarmısın.
Ynt: Kayıt hatası Gönderen: FetihlerFatihi Tarih: 29 April 2008 10:37:17
Nedsnenin oluşturulması ile ilgili bir sorun.

Kullanılan bir nesne Null olarak görünüyor.

Kodları görmek gerekir.
Ynt: Kayıt hatası Gönderen: cemaliozan Tarih: 05 May 2008 23:14:17
Line 365:dsdeneme.Tables['denemeTBL'].Rows.Add(newRow);
Line 366:fbdataadapter1.Update(dsdeneme,'denemeTBL');Line 367:end;
Line 368:

dsdeneme.Tables['denemeTBL'] tablosunu salt okunur moddamı açıyorsun?