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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:49:24+00:00 2026-05-26T19:49:24+00:00

Hello i added the following button inside of a grid: <EmptyDataTemplate> <asp:Button ID=Button1 runat=server

  • 0

Hello i added the following button inside of a grid:

<EmptyDataTemplate>
        <asp:Button ID="Button1" runat="server" CssClass="fancy-button" 
            onclick="Button1_Click" Text="Adauga un spatiu" />

    </EmptyDataTemplate>

The code behind for this:

 protected void Button1_Click(object sender, EventArgs e)
    {

        adsDetails.ChangeMode(DetailsViewMode.Insert);
    }

The button doesn’t fire when i click on it and i tried to add :

 <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />

I receive : “A control with ID ‘Button1’ could not be found for the trigger in UpdatePanel ‘AddressGridViewUpdatePanel’. “

Any idea how i could fix this?
Thank you.

  • 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-26T19:49:25+00:00Added an answer on May 26, 2026 at 7:49 pm

    AsyncPostBackTrigger needs the specified control in the same naming container (see remarks in MSDN) as the parent UpdatePanel.

    I suggest you to use ScriptManager.RegisterAsyncPostBackControl to register your button as async trigger instead.

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

Sidebar

Related Questions

Hello again ladies and gents! OK, following on from my other question on ASP.NET
I created a simple Apache server module following a sample hello world module I
i have the following code if ([[tableView cellForRowAtIndexPath: indexPath].textLabel.text isEqualToString: @added]) { NSLog (@hello);
The following is the example web server from the documentation, with an added counter.
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
I have a file where I added a print -statement such that print hello
I'm trying to use Android Maps, following the instructions in Hello MapView . I've
I installed apache2 on ubuntu. I added the following to /etc/apache2/httpd.conf file ScriptAlias /cgi-bin/
I'm trying to configure a dedicated server that runs ASP.NET to send mail through
Following code, credit: Guffa. Hello All, I'm trying to add controls to a Form

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.