Accessing user controls from the code-behind
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
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
‘ This class extends the base Exception class with a static method (callable ‘ also without creating and throwing an instance of this exception class) to ‘ log the contents
‘ 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”)
‘ 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 ‘
‘ 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
‘ MSD RadixSort. No sort based on comparisons can be faster than O(N log N). ‘ RadixSort makes no comparisons and can therefore achieve O(N) behavior. To ‘ do this,
‘ HeapSort. A compact routine that sorts data in place (no extra memory needed)’ and is guaranteed to run in O(N log N) time no matter how the input data
‘ MergeSort. A stable sort (preserves original order of records with equal ‘ keys). Like HeapSort, easily adapted to any data type and guaranteed to run ‘ in O(N log
‘ SelectionSort. Short, simple and sloooow. This is another O(N^2) sort that ‘ should never be used on long lists. Like InsertionSort,’ it needs no extra memory (in place) and