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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:44:41+00:00 2026-06-11T21:44:41+00:00

I use ASP.NET and jQuery and i use a Dialog. In this Dialog I

  • 0

I use ASP.NET and jQuery and i use a Dialog. In this Dialog I have Webcontrols. If I click on a a Button in the Dialog then the Dialog close but I don’t want that the dialog close if I search a User in this Dialogbox 🙁

Here a example for my Problem:

If I click on the lupe symbol I can open a Dialog for Searching a User in our Active Directory.

enter image description here

But If I click on the Searchbutton on the Dialog then it close first and if I open the dialog agein, I can see the Found users :/

enter image description here

The same Problem I have if I click on the Tab “Signatur” If I click there on a Button the the Page load new with the tab “Abwesenheit” but the Signatur is create if I click on the tab “signatur” agein 🙁

My Code: (jquery code for the dialog)

$(document).ready(function () {
    $("#dialog").dialog({
        autoOpen: false,
        modal: true,
        resizable: false,
        height: 450,
        width: 600,
        closeOnEscape: false,
        buttons: {


        }
    });

    $("#dialog").parent().appendTo($("form:first"));

    $("#DialogOpen").click(function () {
        $("#dialog").dialog("open");
        $("#dialog").parent().appendTo($("form:first"));
        return false;
    });
});

Here my ASPX:

<div id="dialog" title="Vertreterliste">
            <asp:TextBox ID="txtBox" runat="server" ></asp:TextBox>

            <asp:ImageButton ID="imageSearch" runat="server" 
                ImageUrl="~/Theme/Pictures/lupe.jpg" Height="24px" Width="25px" 
                onclick="imageSearch_Click" />

                <hr />

             <asp:ListView runat="server" ID="myListView" OnItemCommand="myListView_ItemCommand" 
                   OnSelectedIndexChanging="myListView_SelectedIndexChanging">


      ....

        </asp:ListView>

        </div>

What can I do that the Dialog not colse if I click on a Webcontrol :/

  • 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-11T21:44:43+00:00Added an answer on June 11, 2026 at 9:44 pm

    Your dialog is closing because your web control doing post back, so, the complete page is being post to server, and when it is returning again it has not such information that dialog is opened or not.

    So you can stop your dialog for being close on a webcontrol, by using UpdatePanels, or send request by ajax.

    Or you can store dialog opening status in a hidden field, and when page loads back, check this hidden field value and according to value open your dialog again with client side script.

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

Sidebar

Related Questions

I have an asp.net user control on which I want to use jquery ajax.
so I have a modal dialog i use with jQuery in my asp .net
I have an ASP.NET page where the page is making use of jQuery UI
I am trying to use the jQuery UI Modal Dialog widget on ASP.NET Web
I am using ASP.Net and jQuery/jQuery UI and I am trying to use the
Using ASP.NET MVC + jQuery : I need to use some values owned by
how would you use JQuery with asp.net Code-Behind what i mean by that: i
I am developing an application using Asp.net mvc and jquery. I'd like to use
I use jQuery icons in my asp.net mvc project. Usually I use gray icons
i am trying to use the jquery form wizard with asp.net to create a

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.