DbObject – A base data class for common DB operations
‘ A base data class that makes it much easier for derived classes to run a ‘ stored procedure to retrieve data or execute a SQL command. (See usage ‘
‘ A base data class that makes it much easier for derived classes to run a ‘ stored procedure to retrieve data or execute a SQL command. (See usage ‘
‘ Log an error/event to the Windows NT/2000 Application Event Log.’ Usage: LogEvent(“Message here”, EventLogEntryType.Information)Sub LogEvent(ByVal message As String, ByVal entryType As EventLogEntryType) If EventLog.SourceExists(Application.ProductName) = False Then EventLog.CreateEventSource(Application.ProductName, “Application”)
Say that you have a page loaded from another page, and that in this page you have a “Save and Return” button that does something and returns to the previous
When you add a user control to an ASP.NET page, Visual Studio .NET does not add a control declaration as it does when you add standard ASP.NET web controls. The
‘ QuickSort. QuickSort, CombSort and ShellSort all exploit the principle of ‘ exchanging keys that are far apart in the list rather than adjacent. ‘ QuickSort does this most elegantly
‘ ShellSort. A compact routine that sorts data in place (no extra memory ‘ needed) and runs in O(N (log N)^2) time. Not stable (does not preserve ‘ original order
Option ExplicitOption Compare BinaryOption Base 1Public Type TRIAL nKEYS As Long nITS As Integer PT As Long TT As Long ST As LongEnd TypePublic Const RAD = 1Public Const TQK
‘ CombSort. A compact routine that sorts data in place (no extra memory needed)’ and runs in approximately O(N log N) time. Not stable (does not preserve ‘ original order
‘ InsertionSort. A simple routine with minimal overhead. Should never be used ‘ to sort long lists because of its O(N^2) behavior,’ but is the method of choice for sorting