Delete Error
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.ArgumentNullException: Value cannot be null. Original_EventName Source Error: File:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fyp2\4aec2943\ef23d10d\App_Code.4j12sz5n.0.cs Line:3079 Stack Trace: [TargetInvocationException: Exception has been thrown by the target of an invocation.] Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42Value cannot be null.
Description:
Parameter name: Original_EventName
Parameter name:Line 3077: this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_EventID));
Line 3078: if ((Original_EventName == null)) {
Line 3079: throw new System.ArgumentNullException("Original_EventName");
Line 3080: }
Line 3081: else {
Source[ArgumentNullException: Value cannot be null.
Parameter name: Original_EventName]
EventDatasetTableAdapters.EventTableAdapter.Delete(Int32 Original_EventID, String Original_EventName, String Original_EventTel, String Original_EventEmail, String Original_EventStartDate, String Original_EventEndDate, String Original_EventStartTime, String Original_EventEndTime, String Original_EventVenue) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fyp2\4aec2943\ef23d10d\App_Code.4j12sz5n.0.cs:3079
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +358
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +17
System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +675
System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method) +61
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteDelete(IDictionary keys, IDictionary oldValues) +1377
System.Web.UI.DataSourceView.Delete(IDictionary keys, IDictionary oldValues, DataSourceViewOperationCallback callback) +176
System.Web.UI.WebControls.DetailsView.HandleDelete(String commandArg) +812
System.Web.UI.WebControls.DetailsView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +660
System.Web.UI.WebControls.DetailsView.RaisePostBackEvent(String eventArgument) +212
System.Web.UI.WebControls.DetailsView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +242
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3840

