InternetUnicodeHTMLCSSScalable Vector Graphics (SVG)Extensible Markup Language (xml)ASP.NetDocument Object Model (DOM)JavaScript ASP ObjectResponse ObjectRequest ObjectServer ObjectApplication ObjectSession Object Draft for Information Only
Content
ObjectContext Object
ObjectContext ObjectThe key functions of ObjectContext is the transaction control on the server. ObjectContext.SetAbort MethodObjectContext.SetAbort Method sets the flag of a transaction during processing scripts in an ASP page to about for the script in a transaction has not completed. Therefore the Component Services should not update those related resources even other participating components in the transaction has completed. Syntax:
SetAbout( Or in ASP file Imply <% SetAbout() %> Parameters:void This method has no parameters. Return Values:void This method has no return values. Remarks:When an ASP page initiates a SetAbout method to abort a transaction, the related transaction as a whole becomes unsuccessful. Since the transaction ends unsuccessfully, the Component Services should not update those related resources even other participating components in the transaction has completed. And any changes made by the transaction are rolled back. The @TRANSACTION processing directive should be used to indicate the script should be treated as a transaction. Examples:
ObjectContext.SetComplete MethodObjectContext.SetCommit Method sets the flag of a transaction during processing scripts in an ASP page to complete for the script in a transaction has completed. Therefore the Component Services can check with other participating components in the transaction whether these participating components has completed or not. If all participating components in the transaction has completed and call SetComplete then the related resources can be updated. Syntax:
SetComplete( Or in ASP file Imply <% SetComplete() %> Parameters:void This method has no parameters. Return Values:void This method has no return values. Remarks:When an ASP page initiates a SetComplete method to commit a transaction, only part of the related transaction is completed. Since all related component parts of the transaction must call SetComplete for the related transaction to complete as a whole, the Component Services should not update those related resources until all other participating components in the transaction has completed. And after checking all participating component parts of the transaction are commited by the SetComplete method, the Component Services will then update the related resources. The @TRANSACTION processing directive should be used to indicate the script should be treated as a transaction. Examples:
©sideway ID: 120200054 Last Updated: 2/14/2012 Revision: 0 Ref: References
Latest Updated Links
|
Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 7 Reference 79 Computer Hardware 251 Software Application 213 Digitization 32 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019