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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:13:18+00:00 2026-05-22T21:13:18+00:00

I need to ask the user if he/she wants to continue an operation (say,

  • 0

I need to ask the user if he/she wants to continue an operation (say, save operation).

So, after the user clicks the Save button, some stuff is checked on the server side. If one condition is met, the user must be asked if he/she wants to proceed.

Based on user’s answer, the postback should be automatically performed carrying the user’s reponse back to the server, so the server will now ask again. Is it possible to do it?

Thanks.

EDIT:

To be more specific, I want this:

  1. The user clicks Save button. The postback is performed

  2. I need to make some validations/checks on SERVER SIDE (this is important!)

  3. In the middle of the postback I want to stop if a certain condition is met and ask the user if he/she really wants to continue.

  4. If the user clicks Yes, I need to re-post the request, but now I need to carry the user’s response.

  5. If that “certain condition” is met again, I will just ignore it because the user wanted that.

So the solution to add the confirmation dialog right when the button is pressed is not an option because the checks are not simple and require some complex stuff involved (impossible to do it on client side).

Ajax/JS/Telerik, all OK.

  • 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-22T21:13:19+00:00Added an answer on May 22, 2026 at 9:13 pm

    You can use

    btnExample.Attributes.Add("onclick", "javascript:return confirm('continue?')";
    

    just one of the options…

    EDIT:

    for your needs you will want to use AJAX, call a method on the server and upon callback open the confirm window.

    2nd Edit:

    if the server side work isn’t long I would this using AJAX.
    AJAX works asynchronously and you want a synchronous procedure, right?

    instead of posting back, call an AJAX method from the javascript, which will look something like this:

    Service.ProccessRequest(data, OnSucceedJSFunction, OnFailJSFunction);
    

    this way when the server side method finishes the OnSucceedJSFunction on the JS will be called.
    in this function you can do something like

    if (confirm('are you sure?'))
    {
    call another server method...
    }
    

    if you need to resend the data to the same server side method or to another server side method you can do this again and call a different OnSucceed js function.

    Im not sure though about what you want to happen at the end of all the procedure…

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

Sidebar

Related Questions

I need to ask an input from a user and he/she should have the
As part of my WiX-based installation, I need to ask the user to enter
I am creating some application, facebook application and i need to ask you something.
How to ask for database credentials from the user, before he/she can view a
I need to ask the user for an ID Number, and then use the
I have a password UIAlertView that we ask the user for. I need to
I need to ask the user for two security questions and their corresponding answers.
I need to execute async delete operation with user confirmation. Something like this: public
I need to ask user to install flash player, when he install my apps
Is there a mode: number option for jquery.mobile.simpledialog.js? I.e: I need to ask user

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.