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 3851952
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:14:32+00:00 2026-05-19T17:14:32+00:00

This is a weird issue. I have a List view with 2 Link buttons.

  • 0

This is a weird issue. I have a List view with 2 Link buttons. “Edit” and “Delete”
Iam able to attach an event handler for the first linkbutton(Update). Code in the event handler executed fine. But If I try to attach a event handler for the second link button(Delete) , I get an error.

My Item Template Looks like this.

<ItemTemplate>
                    <tr>
                        <td>
                            <asp:Label ID="MessageLabel" runat="server" Text='<%# Eval("Item") %>' />
                        </td>
                        <td>
                            <asp:Label ID="URLLabel" runat="server" Text='<%# Eval("URL") %>' />
                        </td>
                        <td>
                            <asp:LinkButton ID="EditLinkButton" runat="server" OnClick="EditLinkButtonClicked"
                                CommandArgument='<%# Eval("ItemID") %>'> Edit</asp:LinkButton>
                        </td>
                        <td>
                            <asp:LinkButton ID="DeleteLinkButton" runat="server" OnClick="DeleteLinkButtonClicked"
                                CommandArgument='<%# Eval("ItemID") %>'>Delete</asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>

The Event handler declared in the codebehind file are

public void EditLinkButtonClicked(object sender, EventArgs e)
{
—–
}

public void DeleteLinkButtonClicked(object sender, EventArgs e)
{
—–
}
[Exactly same]

First Item works absolutely fine. But If I attach the second handler, I get the following error
enter image description here

Am I missing some thing ?
Note – There is no error if I try to attach the 1st event handler to the second link button.[ie EditLinkButtonClicked to DeleteLinkButtonClicked ]
Issue occurs only when I try to attach DeleteLinkButtonClicked to DeleteLinkButton

Any help? Thanks in Advance

  • 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-19T17:14:32+00:00Added an answer on May 19, 2026 at 5:14 pm

    Try to disable EnableEventValidation for the Page directive and check it.

    <%@ Page EnableEventValidation="false" %>
    

    If it help then you should to know that:

    This feature reduces the risk of
    unauthorized or malicious postback
    requests and callbacks. It is strongly
    recommended that you do not disable
    event validation.

    regarding to http://msdn.microsoft.com/en-us/library/system.web.ui.page.enableeventvalidation.aspx
    and try to avoid this in the way that was suggested here.

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

Sidebar

Related Questions

This is pretty weird. I have my Profiler open and it obviously shows that
This could be weird, Have you ever come across a blog which you wanted
This is a weird problem I have started having recently. My team is developing
I have found this example on StackOverflow: var people = new List<Person> { new
I'm having some weird issues with Xcode, and this is pretty much impossible to
I've seen this weird behavior on several sites recently: I scroll down a page
I've got this weird problem - I'm calling ChangeServiceConfig on a newly installed service
I'm experiencing this weird problem which my scrollbar jumps by itself to somewhere that
Today, I ran into this weird problem with a user using Mac OS X.
I'm new to Ruby, so I'm having some trouble understanding this weird exception problem

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.