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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T13:55:38+00:00 2026-05-16T13:55:38+00:00

I have a simple ModalPopupExtender sample but can’t seem to get it working properly.

  • 0

I have a simple ModalPopupExtender sample but can’t seem to get it working properly.
I’ve followed the code from an online sample and it’s similar to a lot of the other online examples but when I run it, the popup panel will quick show then then hides again. I’ve set the targetcontrol to a linkbutton and when I click it it will show the popup, triggers a postback then hides it afterwards thus causing a quick flicker.

here is my code…

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

<asp:LinkButton ID="LinkButton1" runat="server">Add Item</asp:LinkButton>

<asp:Panel ID="PanelPopup" runat="server" CssClass="ModalPopup" Width="500" Height="350" style="display:none;">
    <h1>test</h1>
    <asp:Button ID="ButtonAdd" runat="server" Text="Add" />
    <asp:Button ID="ButtonCancel" runat="server" Text="Cancel" />
</asp:Panel>

<asp:ModalPopupExtender 
    ID="ModalPopupExtender1" 
    runat="server" 
    BackgroundCssClass="Inactive"
    PopupControlID="PanelPopup"
    TargetControlID="LinkButton1"
    OkControlID="ButtonAdd"
    CancelControlID="ButtonCancel">
</asp:ModalPopupExtender>

I’ve also added Register Assembly=”AjaxControlToolkit” Namespace=”AjaxControlToolkit” TagPrefix=”asp” at the top

Can anyone see anything different or wrong about this please?
Many thanks!

  • 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-16T13:55:39+00:00Added an answer on May 16, 2026 at 1:55 pm

    It might be because your using the ASP ScriptManager. Try using the ToolkitScriptManager that comes with the AJAXControlToolkit.

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

Sidebar

Related Questions

I have simple WebView code like this: WebView wv = (WebView) findViewById(R.id.webview1); wv.loadUrl(http://en.wikipedia.org/wiki/Book); But
I have simple class but with anonymous block of code. I need to cover
I have simple php validation form that is halfway working. If you leave the
I have simple code: <?php error_reporting(E_ALL); ini_set('display_errors', true); ini_set('html_errors', false); $test = array(); $test
I have simple CI (CodeIgniter) code. what I want to do is: when I
i have simple side menu with this html code : <div id=menu> <div> Menu
I have simple drag and drop functions implemented in QmainWindow the reference taken from
I have simple html code that plays YouTube video after click on the image:
I have simple script, I want to get my images and then divide them
I have simple shared memory DLL for interprocess data exchange from unmanaged to managed

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.