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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:47:59+00:00 2026-05-27T08:47:59+00:00

I have a page that has some content and 3 partial views each holding

  • 0

I have a page that has some content and 3 partial views each holding an HTML table. I want to open a jQuery dialog when I click on a cell in one of the partial views that will superimpose itself over the entire page (partials included).

I’m not really sure how to check in my main page if something has been clicked in my partial view.

I tried creating the dialog in the partial but it doesn’t open when I click on something.

Is there a way of implementing this?

This is the code I use in my main page for displaying the partial

<div id="PartialProvider">
    @Html.Action("DisplayProviderTable", "CaseInfo")
</div>

This is the content I want to put in a dialog which is in my main view.

<div id="Providers">
   ...
</div>

This is the code in my partial

<table>
     ....
   <tr>
       <td class="row" style="cursor:pointer;text-decoration:underline;" onclick="DisplayDialog(@Model.ID)">
        @Model.ID
    </td>
   </tr>
     ....
</table>

So basically when I click on that cell in my table in the partial I want to put the div providers in a dialog in my main view.

  • 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-27T08:48:00+00:00Added an answer on May 27, 2026 at 8:48 am

    Update to reflect the answer:

    brasewel: If my table only has a single cell that needs to be clicked, will something like $('#tablename').click(function () { ...}); work in my main view?

    Me: That cell must be marked by an Id, class or something like that.
    based on that you can find it by a css selector and attach an event to it or it’s parent element which can be a td, tr or table.

    Here is a code sinppet that we used for showing errors to user, it’s a helper method

    @helper ShowErrorServerSide(List<string> inputError, string dialogMessage)
    {
        var errors = inputError;
    
        if (errors != null && errors.Count() > 0)
        {
    <div id="dialog" title="@dialogMessage" style="display: none;">
        @foreach (var error in errors)
        {
            <p>@error</p>
        }
    </div>
    <script type="text/javascript">
    
        $(document).ready(function () {
            $("#dialog").dialog({
                autoOpen: false,
                modal: true,
                draggable: false,
                closeOnEscape: true,
                closeText: 'hide',
                buttons: { "Ok": function () { $(this).dialog("close"); } }
            });
            $("#dialog").dialog("open");
        });        
    </script>
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML page that has many nested tables, for example table for
I have a master page that has two content sections like this (left some
I have a div (sub area of page with scroll bar) that has some
I have a page that has fields dynamically loaded via JQuery. It allows a
I have a page that has several ajax submission forms. Each form has a
I have a page that has a number of weblog entries on it. Some
I have an ASP.net WebForms page that has a lot of content on the
I have a page in my application that refreshes some content (a list of
I have a very straightforward HTML page that displays content in two columns. To
So I have a page on facebook that has some tabs via apps that

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.