I have an asp.net control that work fine outside of Umbraco. When I add control to umbraco I get the follow error
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 690: totalAmount += subTotal;
Line 691: }
Line 692: ((Literal)this.grvPurchases.FindControl("ltrlTotalGST")).Text = "$" + String.Format("{0:0.00}", totalGst);
Line 693: ((Literal)this.grvPurchases.FindControl("ltrlTotalPay")).Text = "$" + String.Format("{0:0.00}", totalAmount);
Line 694:
FindControl returns object reference error
I have an asp.net control that work fine outside of Umbraco. When I add control to umbraco I get the follow error
25
I get it on the following line of code
((Literal)this.grvPurchases.FindControl("ltrlTotalGST")).Text = "$" + String.Format("{0:0.00}", totalGst);
As I said the code works outside of umbraco so the literal exists and is in grvPurchases. The event is fired on an on button click
is working on a reply...