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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:33:27+00:00 2026-05-22T01:33:27+00:00

i am looking for a best jquery modal for use in asp.net with c#

  • 0

i am looking for a best jquery modal for use in asp.net with c# project in vs 2010…

so i found Simple Modal By Eric , But I Had some problems with it in ajax mode…

because that project works perfect in php & it seems does not support ajax in asp.net!

would u plz show us a nice modal jquery and learn us how can we keep it alive during postbacks …

i want to use it as login page !

thanks for attention

best regards

  • 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-22T01:33:28+00:00Added an answer on May 22, 2026 at 1:33 am

    From the looks of things, you can make Simple Modal work using its most basic invocation. It sounds like you’re using ASP.NET WebForms so you could do something like this:

    MyPage.aspx

    ...
    <asp:Button ID="btnPopupTrigger" runat="server" OnClick="OpenPopup" Text="Open Popup" />
    ...
    <asp:Panel ID="pnlPopup" runat="server" CssClass="pnlPopup" Visible="false">
        <asp:TextBox ID="txtInput" runat="server" />
        ...
    </asp:Panel>
    
    <script type="text/javascript">
    
    $("div.pnlPopup").modal();
    
    </script>
    ...
    

    MyPage.aspx.cs

    ...
    protected void OpenPopup(object sender, EventArgs e)
    {
        pnlPopup.Visible = true;
    }
    ...
    

    What this will do is hide the popup content until you want it to be shown. Once the asp:Panel is made visible, the jQuery will find it and make use of the SimpleModal plugin to make it display appropriately. This all requires that you’re using standard postbacks, no asp:UpdatePanels or AJAX calls.

    One issue you may run into is that it looks like this plugin grabs the modal content and appends it to the <body> element. ASP.NET expects to see those modal inputs within its <form>, so you might need to tweak the plugin to append the modal to <form> instead of <body>.

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

Sidebar

Related Questions

I found this? Is this the best way to do it? http://weblogs.asp.net/dwahlin/archive/2009/05/03/using-jquery-with-client-side-data-binding-templates.aspx I'm looking
i am looking for the best selector (jquery) in content pages ! i found
I'm looking for best practices here. Sorry. I know it's subjective, but there are
I'm looking for the best solution to dynamically change some images extension (from .svg
Looking to trigger an action but not sure what the best way to go
Working against jQuery 1.3.2 I'm looking for best practices that implement the typical '
I'm looking for some advice on best practice when writing a web app that
I'm not sure how to phrase it the best way, but what I'm looking
We're looking for the best jQuery-based user interface library we can find. It doesn't
I am looking for the netbeans jquery plugins. Please drop me best jquery plugins

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.