Note that there are some explanatory texts on larger screens.

plurals
  1. POCompiler Error Message CS1061 but I have defined my event handler ASP.net/C#
    primarykey
    data
    text
    <p>So this error is coming from an attempt to solve another issue I am having with Telerik RadGrid but I feel like this problem is just due to the fact that I never actually written a full C# program before an I am picking up someone else's code. I realize that about 100 other people have posted this same question but none of those solutions helped. I have deployed my dlls, manually regenerated the designer file, renamed the event handled, checked its not repeated anywhere and I don't know what else to do.</p> <p>The top of my ascx file:</p> <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="True" CodeBehind="blahblah.ascx.cs" Inherits="blah.blahh.blahblah" %&gt; &lt;%@ Register Assembly="Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %&gt; </code></pre> <p>The event I'm trying to handle is OnNeedDataSource used for the Telerik RadGrid sorting and paging. So heres a couple pieces of my code the ascx file:</p> <pre><code>&lt;telerik:RadGrid HeaderStyle-BackColor="#1C5E55" AllowAutomaticInserts="false" AllowAutomaticUpdates="false" AllowAutomaticDeletes="false" OnDeleteCommand="rgCanonicalRelationships_DeleteCommand" CommandItemStyle-CssClass="ms-stylelabel" AutoGenerateColumns="false" runat="server" OnNeedDataSource="rgCanonicalRelationships_NeedDataSource" Skin="Web20" CommandItemStyle-Font-Names="tahoma" CommandItemStyle-Font-Size="XX-Small" AllowSorting="true"&gt; &lt;MasterTableView AllowAutomaticInserts="false" AllowAutomaticUpdates="false" AllowAutomaticDeletes="false" BorderStyle="Solid" BorderWidth="1px" HeaderStyle-BackColor="#1C5E55" ItemStyle-BackColor="LightGray" CommandItemDisplay="None"&gt; &lt;/MasterTableView&gt; &lt;/telerik:RadGrid&gt; </code></pre> <p>and here is the code-behind properly linked </p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using Telerik.Web.UI; using System.Collections; using System.Web.Services; using Telerik.WebControls; namespace blah.blahh { public partial class blahblah : { </code></pre> <p>with my function defined:</p> <pre><code>protected void rgCanonicalRelationships_NeedDataSource(object sender, EventArgs e) { BuildCanonicalRelationshipsTable(); } </code></pre> <p>I'm trying to avoid posting all of my code so if you need to see more let me know. I've been struggling with this for a while and I feel like theres something I'm supposed to do and just haven't Using this OnNeedDataSource event was the suggested way to fix the problem of having my grid disappear on sorting and only reappear upon rebinding the grid</p> <p>Edit: Sorry forgot about the Error message since I've been seeing it so much:</p> <blockquote> <p>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. </p> <p>Compiler Error Message: CS1061: 'ASP.blah_blahh_blahblah_ascx' does not contain a definition for 'rgCanonicalRelationships_NeedDataSource' and no extension method 'rgCanonicalRelationships_NeedDataSource' accepting a first argument of type 'ASP.blah_blahh_blahblah_ascx' could be found (are you missing a using directive or an assembly reference?)</p> <p>Source Error:</p> <pre><code>Line 113: &lt;tr class="ms-stylelabel"&gt; Line 114: &lt;td colspan="2"&gt; Line 115: &lt;telerik:RadGrid HeaderStyle-BackColor="#1C5E55" AllowAutomaticInserts="false" Line 116: AllowAutomaticUpdates="false" AllowAutomaticDeletes="false" OnDeleteCommand="rgCanonicalRelationships_DeleteCommand" Line 117: CommandItemStyle-CssClass="ms-stylelabel" AutoGenerateColumns="false" runat="server" OnNeedDataSource="rgCanonicalRelationships_NeedDataSource" </code></pre> <p>Source File: c:\Inetpub\wwwroot\wss\VirtualDirectories\3718\blah\blahh\blahblah.ascx Line: 115 </p> </blockquote>
    singulars
    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.
 

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