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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:58:45+00:00 2026-05-26T02:58:45+00:00

I want to show a Dialog, I am using jquery ui with asp.net mvc

  • 0

I want to show a Dialog, I am using jquery ui with asp.net mvc 3.0

The problem is: no open any dialog only a white page. This my code.

I have a form and inside a link, it must be open the Dialog with data.

<%= Html.ActionLink("Select Image", "SelectImage", "Image", new { @class = "popup-link" })%>

my SelectImage method do that

 public ActionResult SelectImage()
        {
            List<ImageLibraryItem> data = new List<ImageLibraryItem>();
            data = StateManager.SelectImage(ImageType.Flights);

            var datajson = new
            {
                lista= data
            };

            return Json(datajson, JsonRequestBehavior.AllowGet);
        }
    }

and return the images that I want show.

In the same view where I have my link (the first) I put this:

<script language="javascript" type="text/javascript">
    $(function () {
        $('.popup-link').click(function () {
            var href = $(this).attr('href');
            $('<div><p class="popup-content"></p></div>').dialog({
                autoOpen: true,
                modal: true,
                height: 200,
                width: 400,
                open: function () {
                    $(this).find('.popup-content').load(href);
                },
                close: function () {
                    $(this).dialog('destroy');
                }
            });
            return false;
        });
    });
</script>

any idea!!! why show me a white page and not a Dialog!!!

  • 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-26T02:58:45+00:00Added an answer on May 26, 2026 at 2:58 am

    You are using a wrong overload of the ActionLink helper. It should be like this in order to for it to point to the correct controller action:

    <%= Html.ActionLink(
        "Select Image",                 // linkText
        "SelectImage",                  // action
        "Image",                        // controller
        null,                           // routeValues
        new { @class = "popup-link" }   // htmlAttributes
    ) %>
    

    whereas you are using this:

    <%= Html.ActionLink(
        "Select Image",                 // linkText
        "SelectImage",                  // action
        "Image",                        // routeValues
        new { @class = "popup-link" }   // htmlAttributes
    ) %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to show a popup screen on my page using JQuery UI Dialog
I am using asp.net mvc 2.0 and jquery validate 1.7 ( http://bassistance.de/jquery-plugins/jquery-plugin-validation/ ) What
I'm using jquery dialog and want to slide on show. How do I specify
Using jQuery/jQueryUI I want to populate a form using this HTML/JS show below. The
I'm using this code sample that came from jquery-ui website to show the dialog
I am using asp.net mvc 3 jquery validate unobstructive javascript. I am trying to
I am using the jQuery Dialog in ASP.NET. I have it working fine with
I want to show a open dialog for the user, where the user can
I want to show a jquery dialog next to a button when its clicked.
I'm using the Boxy jQuery plugin to open dialog windows and populating it through

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.