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

  • Home
  • SEARCH
  • 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 8259637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:54:42+00:00 2026-06-08T02:54:42+00:00

I have a linkbutton in a gridview control in my asp.net app that generates

  • 0

I have a linkbutton in a gridview control in my asp.net app that generates an error upon page_load (“subscribersearch.aspx”). How can I resolve this error?

HTML Code is:

<ItemTemplate>
        <asp:LinkButton OnClick="LinkButton_Click" id="lbtnViewSubscriberHistory" CommandName="ViewSubscriberHistory" Visible="true" runat="server" ToolTip="Click to view History." >Subscriber History</asp:LinkButton>
</ItemTemplate> 

CodeBehind:

void LinkButton_Click(Object sender, EventArgs e)
{
    Alert("Test", "You clicked the link button");
}

Error message:

System.Web.HttpException (0x80004005): Error executing child request for SubscriberSearch.aspx. —>

System.Web.HttpCompileException (0x80004005): l:\CorpApp\Web\us\SubscriberSearch.aspx(365):
error CS1061: ‘ASP.subscribersearch_aspx’ does not contain a definition for ‘LinkButton_Click’ and no extension method ‘LinkButton_Click’ accepting a first argument of type ‘ASP.subscribersearch_aspx’ could be found (are you missing a using directive or an assembly reference?)

  • 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-06-08T02:54:43+00:00Added an answer on June 8, 2026 at 2:54 am

    Add protected before the method

    protected void LinkButton_Click(Object sender, EventArgs e)
    {
        Alert("Test", "You clicked the link button");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an asp.net control that inherits from the gridview and its called
how can i use request.querystring in asp.net.i have a linkbutton and this is in
I have an asp.net GridView with a DropwDownlist control and a bunch of other
I have a usercontrol that hides a div when a button is clicked. <asp:LinkButton
I have a gridview which is like <asp:TemplateField HeaderText=File Name SortExpression=FileName> <ItemTemplate> <asp:LinkButton ID=lnkname
I have an LinkButton column in my GridView: <Columns> <asp:TemplateField> <ItemTemplate> <asp:LinkButton runat=server/> </ItemTemplate>
I have a ModalPopup in the ItemTemplate of a GridView like <ItemTemplate> <asp:LinkButton ID=lnkbtnSeek
I have successfully implemented my GridView now, but, as always, the whole ASP.NET life
I have a gridview inside an update panel.In that gridview, I have a linkbutton
I have a page that contains a GridView with a LinkButton, in a template

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.