SpiceLogic Inc.
                                                                                                     SpiceLogic Inc. Home PageProductsJournalMy AccountHelp DeskContact Us
 
Knowledge base  : ASP.NET PayPal Control for Website Payments Standard    - Standard Edition
Welcome Guest   Login

Skip Navigation Links. ASP.NET PayPal Control for Website Payments Standard

Documentation  Documentation

Download   Download the latest version

Back to the home of knowledgebase forum Programatically trigger the 'Click' event of UploadCompleteCartButton

An user   6/17/2009 7:04:36 AM

Hello,
I would like to programmatically invoke the funcionallity that is executed when the UploadCompleteCartButton is clicked.
Is this possible?
 
Also it would be good if it were possible to cancel execution during the click-callback.
E.g:

 

protectedvoidUploadCompleteCartButton1_Click(objectsender, ImageClickEventArgse)
{
   if ( // some logic..)
  {
   e.Cancel = true; // allow to cancel
   return;
   }



Resolution:
- [SpiceLogic Support Technician]   6/17/2009 10:56:40 AM

Dear Santiago,
 
Yes, of course you can do those tasks using our control.
 
Please visit this page for learning about "programmatically/simulating Click" : http://documentation.spicelogic.com/Products/slAspNetPayPalControl/submitMethod.aspx
 
In order to learn cancelling button submission programmatically, please visit this link:
 
In summary, this control got two useful public methods named: Submit() and CancelSubmission(). Submit() method will simulate click on the button and CancelSubmission() method will cancel a click/command event.



Home  || Products  || Journal  || My Account  || HelpDesk  || Contact Us

Website and Software Copyright ©2010, SpiceLogic Inc., All Rights Reserved.