
Takıldıkça soruyorum ve yine bir yerde takıldım.
Şimdi efendim, iki tane webformum var. Birinci form anaform, üzerine bir tane buton bıraktım, o buton ile;
Kod: Tümünü seç
response.redirect('ikincifrm.aspx');
diyor ve 366 numaralı satırı çiziyor. Verdiği hatadan anladığım, olmayan bir nesneyi çağırmaya çalışıyor. Ama FBConnection, FBDataadapter ve Dataset nesneleri ikinci formda. Acabalardan kurtulmak için aynı tasarımı aynı kodları birinci formda denediğimde sorunsuz kayıt işlemi yapılıyor.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:
Sorun nerede, nerede yanlış yapıyorum?