Need server-based confirm function

2 posts, 0 answers
  1. Rich
    Rich avatar
    25 posts
    Member since:
    Jun 2010

    Posted 26 Sep 2010 Link to this post

    I have a need for a server control that will perform a JS-type confirm or prompt  function and then perform a postback with the selected value from the user.

    Note that this is not a client confirmation prior to running a server function, rather it is client confirmation after server procesing has already been started.

    Here is the scenario:  the user submits a web page and the server logic works on it.  During processing the logic detects a condition that requires user feedback, so a control is necessary that will pop up a JS confirm/prompt and then postback the answer so that processing can continue. 

    Will any of your controls do that?  If not, do you have any documentation or samples on how I could build my own control?
  2. Marin
    Marin avatar
    1038 posts

    Posted 29 Sep 2010 Link to this post

    Hi Richard,

    In ASP.NET the page's life cycle cannot be interrupted for calling a client script function and after that resuming the life cycle execution. It will be good if you can switch to a different approach. One possible option is to register a client script containing all the logic for determining whether to show client confirmation and after postback process the user's input on the server. Or you can show the confirmation on the next page load after the first postback to the server (which determines weather to show the confirmation), and then process the user input on the second postback.
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top