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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:57:40+00:00 2026-05-21T05:57:40+00:00

I am playing around with C# and the jQuery UI Dialog box tonight. I

  • 0

I am playing around with C# and the jQuery UI Dialog box tonight. I have added a dialog div to a user management page that will enable Administrators to edit user information (such as address, phone, aspnetdb stuff). When the admin clicks on a row in a grid view, the dialog is activated, but the controls (text boxes and drop downs) take a few seconds to populate with the information. I would like the dialog to present the user’s information, allow changes to the controls, allow the administrator to save the data, and then update the grid view which is inside of an update panel.

Is there a way through Code Behind and jQuery to only show the dialog box after all of the fields have been filled in by the Datatable (dataset xsd)?

Thanks in advance for your help. This has stumped me for hours.

  • 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-21T05:57:41+00:00Added an answer on May 21, 2026 at 5:57 am

    I’d go with the following scenario:

    1. When a user clicks on a grid row, an ajax request will be made through jQuery.ajax that gets the appropriate data based on the user’s selection.
    2. the jquery.ajax function has an onSuccess callback function which activates the jqueryUI dialog.

    Something like:

    $.ajax({
      url: "myUrl.aspx/MethodName",
      type: "POST",
      data: ({id : my_grid_selected_id}),
      success: function(result){
       // Do the dialog fields population here.
       $( "#myDialog" ).dialog( "open" );
      }
    }
    );
    

    UPDATE: Here’s how you can populate data in you dialog’s controls. I’ll try to explain it with an example.

    Server-Side (Method has to be static and has a [WebMethod()] attribute).

    public class CustomData
    {
        public string name;
        public int id;
    }
    
    [WebMethod()]
    public static CustomData ReturnCustomData(int MyID)
    {
        CustomData MyData = new CustomData();
        MyData.name = "Custom name";
        MyData.id = MyID;
        return MyData;
    }
    

    Client-Side:

    $.ajax({
      url: "myUrl.aspx/ReturnCustomData",
      type: "POST",
      data: ({MyID : my_grid_selected_id}),
      success: function(result){
      $("your_name_textbox_identifier").val(result.name);
      $("your_id_textbox_identifier").val(result.id);
      $( "#myDialog" ).dialog( "open" );
      }
    });  
    

    For populating dropdown lists, check out http://www.isolutionteam.co.uk/how-to-populate-aspnet-dropdown-list-from-database-by-passing-radio-button-lists-selected-value-as-parameter-with-jquery/

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

Sidebar

Related Questions

I'm playing around with the Jquery UI dialog. I have a page with a
I have been testing and playing around with jquery date picker below. http://jqueryui.com/demos/datepicker/ on
I've been playing around with subscribing elements to AJAX events in jQuery. I have
I have been playing around with jQuery for a bit now, and am really
I'm playing around with writing a jQuery plugin that uses an attribute to define
I am new jQuery, playing around with it. I would like text box when
Started playing around with jQuery and the jsTree plugin yesterday, and have it successfully
I'm playing around with jquery and made a form that submits information without a
I'm playing around with jQuery tabs and have a prototype up and running. http://www.omnicom-innovations.com/play/tabsdemo.html
I saw a post earlier today and have been playing around with: http://arashkarimzadeh.com/index.php/jquery/7-editable-jquery-plugin.html What

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.