Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Server Side Confirmation pop-up...

Reply
Thread Tools

Re: Server Side Confirmation pop-up...

 
 
Michal A. Valasek
Guest
Posts: n/a
 
      07-25-2003
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server-Side Control - Embedded Server-Side Code - Inline Mythran ASP .Net 2 01-22-2005 01:02 AM
client-side browser timeout OR server-side web server timeout?? (please help) jrefactors@hotmail.com HTML 1 01-04-2005 06:13 AM
client-side browser timeout OR server-side web server timeout?? (please help) jrefactors@hotmail.com Java 0 01-04-2005 04:06 AM
Re: Server Side Confirmation pop-up... S. Justin Gengo ASP .Net 9 07-28-2003 04:02 PM
data synchronisation - java server side or www server side? Thor Java 1 07-02-2003 05:44 PM



Advertisments