Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6175345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:54:34+00:00 2026-05-23T23:54:34+00:00

So this error is coming from an attempt to solve another issue I am

  • 0

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.

The top of my ascx file:

<%@ Control Language="C#" AutoEventWireup="True" CodeBehind="blahblah.ascx.cs"
    Inherits="blah.blahh.blahblah" %>

<%@ Register Assembly="Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

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:

<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">
     <MasterTableView AllowAutomaticInserts="false" AllowAutomaticUpdates="false" AllowAutomaticDeletes="false"
          BorderStyle="Solid" BorderWidth="1px" HeaderStyle-BackColor="#1C5E55" ItemStyle-BackColor="LightGray"
          CommandItemDisplay="None">
     </MasterTableView>
</telerik:RadGrid>

and here is the code-behind properly linked

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 :
    {      

with my function defined:

protected void rgCanonicalRelationships_NeedDataSource(object sender, EventArgs e)
{
    BuildCanonicalRelationshipsTable();
}

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

Edit:
Sorry forgot about the Error message since I’ve been seeing it so much:

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.

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?)

Source Error:

Line 113:    <tr class="ms-stylelabel">
Line 114:        <td colspan="2">
Line 115:            <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"

Source File: c:\Inetpub\wwwroot\wss\VirtualDirectories\3718\blah\blahh\blahblah.ascx Line: 115

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:54:34+00:00Added an answer on May 23, 2026 at 11:54 pm

    As I expected due to my inexperience working with ASP and the software and environment I’m working in I was just compiling wrong and hence everything was getting messed up even though some stuff was working so it seemed ok.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble with this query. I have 2 date coming from textboxes (don't
Right now I'm getting this strange error from IE which is basically 'null' is
Another question about my implementation. I am fairly new to java/android coming from a
This error just started popping up all over our site. Permission denied to call
This error seems to just pop up now and again. It is not restricted
This error message appears on a colleague's machine when he tries to launch a
Came across this error today. Wondering if anyone can tell me what it means:
Has anyone run into this error message before when using a timer on an
I got this error today when trying to open a Visual Studio 2008 project
I get this error: Can't locate Foo.pm in @INC Is there an easier way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.