B
BenCoo
Hi,
In my ASP.NET application I do some exceptionhandling and redirect the
exception with Session("Exception") to an Errorpage.aspx. When I put the
error in a label I get the following :
System.NotSupportedException: Inserting is not supported by ObjectDataSource
'objDsrLocationEdit' unless the InsertMethod is specified. at
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteInsert(IDictionary
values) at System.Web.UI.DataSourceView.Insert(IDictionary values,
DataSourceViewOperationCallback callback) at
System.Web.UI.WebControls.DetailsView.HandleInsert(String commandArg,
Boolean causesValidation) at
System.Web.UI.WebControls.DetailsView.HandleEvent(EventArgs e, Boolean
causesValidation, String validationGroup) at
System.Web.UI.WebControls.DetailsView.OnBubbleEvent(Object source, EventArgs
e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.WebControls.DetailsViewRow.OnBubbleEvent(Object source,
EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source,
EventArgs args) at
System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) at
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String
eventArgument) at
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,
String eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)
This is way to much ... I want just this :
System.NotSupportedException: Inserting is not supported by ObjectDataSource
'objDsrLocationEdit' unless the InsertMethod is specified.
Is that possible ?
Thanks for any help on this,
Benny
In my ASP.NET application I do some exceptionhandling and redirect the
exception with Session("Exception") to an Errorpage.aspx. When I put the
error in a label I get the following :
System.NotSupportedException: Inserting is not supported by ObjectDataSource
'objDsrLocationEdit' unless the InsertMethod is specified. at
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteInsert(IDictionary
values) at System.Web.UI.DataSourceView.Insert(IDictionary values,
DataSourceViewOperationCallback callback) at
System.Web.UI.WebControls.DetailsView.HandleInsert(String commandArg,
Boolean causesValidation) at
System.Web.UI.WebControls.DetailsView.HandleEvent(EventArgs e, Boolean
causesValidation, String validationGroup) at
System.Web.UI.WebControls.DetailsView.OnBubbleEvent(Object source, EventArgs
e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.WebControls.DetailsViewRow.OnBubbleEvent(Object source,
EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source,
EventArgs args) at
System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) at
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String
eventArgument) at
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,
String eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)
This is way to much ... I want just this :
System.NotSupportedException: Inserting is not supported by ObjectDataSource
'objDsrLocationEdit' unless the InsertMethod is specified.
Is that possible ?
Thanks for any help on this,
Benny