Note that there are some explanatory texts on larger screens.

plurals
  1. PO.dbml .cs File throws Object reference not set to an instance of an object
    primarykey
    data
    text
    <p>I have a listview bound to a LinqDataSource</p> <p>I have steped thorugh the code and it gets to this section of the .dbml file of the xx.designer.cs</p> <pre><code>public System.Data.Linq.Table&lt;qtxt_Competition&gt; qtxt_Competitions { get{ return this.GetTable&lt;qtxt_Competition&gt;(); } } </code></pre> <p>and once it passes the return it throws this error</p> <blockquote> <p>at System.Web.UI.WebControls.QueryableDataSourceView.OriginalValueMatches(Object originalValue, Object value) at System.Web.UI.WebControls.QueryableDataSourceView.GetOriginalValues(IDictionary keys) at System.Web.UI.WebControls.QueryableDataSourceView.BuildUpdateObjects(IDictionary keys, IDictionary values, IDictionary oldValues, IDictionary`2 validationErrors) at System.Web.UI.WebControls.QueryableDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) at System.Web.UI.WebControls.ContextDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) at System.Web.UI.WebControls.LinqDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) at System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) at System.Web.UI.WebControls.ListView.HandleUpdate(ListViewItem item, Int32 itemIndex, Boolean causesValidation) at System.Web.UI.WebControls.ListView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) at System.Web.UI.WebControls.ListView.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.ListViewDataItem.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.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)<br> at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</p> </blockquote> <p>Ok the strange thing is that for some records it will update fine but for other it keeps throwing this error</p> <p>Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload