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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:40:56+00:00 2026-05-29T07:40:56+00:00

In my web application I use jquery dialogs to open popups. The function used

  • 0

In my web application I use jquery dialogs to open popups.
The function used to perform this task is this:

function OpenPopup(popupTarget, width, height, params, onOpenFunction, onCloseFunction, popupElement){

// some code to parse the parameters
//`popupElement` is a div with `style="display: none;"`
// included in a master page which every page inherits from

    $(popupElement).dialog(
{
    autoOpen: false,
    resizable: false,
    height: height,
    width: width,
    modal: true,
    open: onOpenFunction,
    closeOnEscape: false,
    close: function (e)
    {
        var popupResult = $(this).dialog("option", "notification");

        $(this).dialog("destroy");

        if (!isHTMLElement)
            popupFrame.css("visibility", "hidden");

        if (jQuery.isFunction(onCloseFunction))
        {
            var funct = eval(onCloseFunction);
            funct(popupResult);
        }
    }
});

$(popupElement).dialog("open");
}

This is the function that calls the above method:

function FiltroNotifiche(){
params = "";

OpenPopup("~/manage/Popup/FiltroNotifiche.aspx", 450, 350, params, function (e) { }, function (strNotification)
{
    OnPopupReturn(true, strNotification, function ()
    {
        __doPostBack('UpdatePanel', 'Filtro=true');
    });
});
}

function OnPopupReturn(bRefresh, strNotification, senderFunction){
// this function parses strNotification and if, successful, calls:
    var funct = eval(senderFunction);
    funct();

}

Inside the popup I use the ICallbackEventHandlercallback interface.

The problem is that after opening and closing the popup (I can see the callback being executed and all), whatever I do next I’m getting kicked out, most likely because the session has expired.

A strange thing that I noticed is that this happens only if I get to the page that opens the popup (GestioneNotifiche.aspx) via the menu control, because if I get to there through a button PostBackUrl in another page, this doesn’t happen, and the session lives happily!

The menu has an xml data source and these bindings:

<DataBindings>
  <asp:MenuItemBinding DataMember="Menu" TextField="Text" Selectable="false" />
  <asp:MenuItemBinding DataMember="MenuItem" NavigateUrlField="NavigateUrl" TextField="Text" ValueField="Value" />
</DataBindings>

This is the menu item:

<MenuItem Value="" Text="Gestione notifiche" NavigateUrl="~/manage/GestioneNotifiche/GestioneNotifiche.aspx" />

I did notice the call through the menu has Request.HttpMethod = "GET", while via postback it is (rather obviously) "POST". Could this be the significant? I don’t really know much about the difference between GET and POST.

Thank you

  • 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-29T07:40:57+00:00Added an answer on May 29, 2026 at 7:40 am

    Sounds like your problem is that authentication is being cleared and not your session. Check your page_load event to see if you are doing anything differently between a GET and POST request that would result in clearing the authentication.

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

Sidebar

Related Questions

I have started a new web application and have decided to use jquery as
I am using jQuery in my web application. I want to use arrays, but
I use jQuery, jQuery UI and jQuery mobile to build a web application for
I am developing an asp.net mvc web application that makes much use of jquery
I'm developing a web application and would like to use the jQuery library to
i want to use jQuery and Spry both in my web-application. how it's possible.
I am going to use JQuery UI Tabs Plugin on my web application. And
I'm building an application that makes extensive use of jQuery UI Dialogs. I ran
I am developing a web application and I use jQuery 1.5 and JavaScript for
I'm converting a jQuery-based web application for use on iPad and need to make

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.