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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:18:09+00:00 2026-05-11T08:18:09+00:00

I have an ASP.NET website which uses the jQuery dialog to present the user

  • 0

I have an ASP.NET website which uses the jQuery dialog to present the user with a downloads terms dialog. Once the user has agreed to the terms in the dialog, the I perform a server-side postback which issues a Response.Redirect call to a page on another website which is responsible for serving the download to the browser. The problem is that once the Response.Redirect call has been made, the dialog can no longer be shown.

I initialize the dialog in the document.ready event using the following code :-

$('#terms-dialog').dialog({   modal: true,   autoOpen: false,   autoResize: false,   height: 420,   width: 500,   overlay: {     opacity: 0.5,     background: 'black'   } }); 

The code to show the dialog is as follows :-

function showTermsDialog(snippetid, title, agreement, url) {   $('#terms-dialog-text').html(agreement);   $('#terms-dialog-controls').attr('style', 'display: block;');   $('#<%= this.SnippetID.ClientID %>').attr('value', snippetid);   $('#<%= this.DownloadUrl.ClientID %>').attr('value', url);   $('#terms-dialog').data('title.dialog', title);    $('#terms-dialog').dialog('open'); } 

This code allows me to successfully show the dialog multiple times, but the call to dialog(‘open’) no longer works after the Response.Redirect call has been made.

Has anyone done anything similar to what I am attempting to do here? Alternatively, if anyone can offer any jQuery dialog debugging tips, these would also be appreciated.

  • 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. 2026-05-11T08:18:10+00:00Added an answer on May 11, 2026 at 8:18 am

    The problem seemed to be caused by an extension function my dialog was using which was positioning the jQuery dialog into the form section of the page, to ensure server-side postbacks would work correctly. I changed the behaviour of this code to instead simply close the dialog and then invoke the serverside callback manually using the following

    <%= this.Page.ClientScript.GetPostBackEventReference(btnAgree, '') %>; 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a large ASP.Net website that has a single css stylesheet which is
I have an ASP.Net website which uses a MySQL database for the back end.
I have an ASP.NET v2 website which uses NHibernate for ORM. My current architecture
I have an asp.net mvc website which of course has a web.config file. I
I have an ASP.Net hosted website which displays a list of results as a
I have an existing ASP.NET website which I would like to painlessly add CMS
I have an asp.net website that allows the user to download largish files -
I have an ASP.NET website (in C#) that takes in user data and then
I have an asp.net website that uses forms authentication. There are a few things
I am working on an ASP.NET website which uses forms authentication with a custom

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.