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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:31:04+00:00 2026-05-25T16:31:04+00:00

I have an ASP.NET MVC web application. The application can be managed with a

  • 0

I have an ASP.NET MVC web application. The application can be managed with a “remote control”, which is a jQuery UI dialog and appears only when a user with sufficent permissions logs in and clicks on the “show remote control” button. (Obviously, the HTML code of the dialog is not there otherwise.)

When the user clicks on a link on the site, this dialog closes itself.
I want the dialog to “remember” that it was open and open itself automatically in such cases.

What is the simplest and most cross-browser-compatible way of doing this?
(Let’s assume for now that I don’t want to care about archaic browsers, the people who will use this will use new browsers.)

Here is the code that initializes the dialog.

$(document).ready(function () {
    $("#remote-control").dialog({
        autoOpen: false,
        show: "explode",
        hide: "explode",
        title: "Távirányító",
        minWidth: 220,
        maxWidth: 260,
        width: 190,
        height: 300,
        maxHeight: 500,
        position: [50, 100]
    });

    $("#remote-control-opener").click(function () {
        $("#remote-control").dialog("open");
        return false;
    });
});

Thanks in advance for your answers!

  • 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-25T16:31:05+00:00Added an answer on May 25, 2026 at 4:31 pm

    There are two ways you could do this. Use either a cookie or a URL parameter to set a value like isRemoteVisible which you can check on page load. The jquery libraries I would use to achieve this are:

    • Cookie approach: https://github.com/carhartl/jquery-cookie
    • Url Param approach: http://www.mathias-bank.de/jQuery/jquery.getUrlParam.js

    Using a url parameter is more reliable as your user may have cookies disabled. After you’ve detected the value of your cookie/param, you can programmtically trigger the remote control to pop up.

    Edit

    You can set a cookie using the library mentioned above as follows:

    $.cookie('isRemoteVisible', 'true');
    

    You can then get this cookie value as follows:

    var showRemote = $.cookie('isRemoteVisible');
    

    Finally, perform a check on this to open the dialog:

    if ("true" == showRemote)
         $("#remote-control").dialog("open");
    
    • 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 MVC web application which is hosted by an external provider,
I have an ASP.NET MVC 3 (Razor) Web Application, with a particular page which
I have an ASP.NET MVC 3 / .NET Web Application, which is heavily data-driven,
I have an Asp.net MVC application which uses html5 and jquery on the client
With ASP.NET MVC, it is common to have AJAX code(e.g. jQuery) to invoke web
I have an ASP.NET MVC-application which I want deployable on both IIS6 and IIS7
I have an ASP.NET MVC Web Application that interacts with a SQL Server 2008
If i have an ASP.NET MVC 2 Web Application with the following Views: Main.aspx
I have built an ASP.NET MVC web application that uses Entity Framework. To provide
Solved using this post: Can you convert an ASP.NET MVC Application to a Web

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.