Re: Server Side Confirmation pop-up...

Discussion in 'ASP .Net' started by Michal A. Valasek, Jul 25, 2003.

  1. Hello,

    | function OnComplete()
    | {
    | if ( confirm("Do you wish to complete this order?") )
    | {
    | btnComplete_ServerClick()
    | }
    | }

    You can't call server code from client code. The right way is to cancel form
    submitting at client.

    To cancel click, simply return false as value. Your function should be:

    function OnComplete(){
    return confirm("Do you wish to complete this order?");
    }

    --
    Michal A. Valasek, Altair Communications, http://www.altaircom.net
    Please do not reply to this e-mail, for contact see http://www.rider.cz
     
    Michal A. Valasek, Jul 25, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. S. Justin Gengo

    Re: Server Side Confirmation pop-up...

    S. Justin Gengo, Jul 25, 2003, in forum: ASP .Net
    Replies:
    9
    Views:
    534
    Daniel Bass
    Jul 28, 2003
  2. Amelyan
    Replies:
    1
    Views:
    8,382
    Steve C. Orr [MVP, MCSD]
    Apr 29, 2005
  3. Elton W
    Replies:
    0
    Views:
    3,305
    Elton W
    May 15, 2005
  4. Replies:
    2
    Views:
    8,563
    Randy Webb
    Feb 4, 2006
  5. Replies:
    2
    Views:
    149
    Randy Webb
    Feb 4, 2006
Loading...

Share This Page