|
|
|
|
Databinding to multi-dimensional arrays
|
Total Hit (1756) |
Someone asked whether it was possible to data bind to a multi-dimensional array, and if so how. Below is a simple example that demonstrates how to do so, it is not a super inspired scenario but you get the idea. Note that in addition to handling arrays, the concept can be applied to any hierarchica
....Read More |
Rating
|
|
|
Dynamically Build an Array using ArrayList
|
Total Hit (1703) |
«Code LangId=4»Dim Values as New ArrayList()
Values.Add("Scott")
Values.Add("Fred")
Values.Add("Sam")
Dim Names as String()
Names = Values.ToArray(Type.GetType("System.String"))«/Code»
Note that because ArrayList implements ICollection -- you can do standard
foreach interation over it.
....Read More |
Rating
|
|
|
Use ASP.NET caching to optimize your Web applications
|
Total Hit (984) |
The ASP programming model includes the Application object, which allows developers to place both simple data types and COM objects in memory on the Web server so they could be accessible on any page, regardless of the current user. While ASP’s Application object retains its original functionality in
....Read More |
Rating
|
|
|
Caching in .Net - Overview
|
Total Hit (883) |
One of the new features in ASP.NET is a system for caching page and application data, so that you don’t have to perform the same expensive process every time someone views a page.
Page caching: Caching can be performed on a per-page basis, or on a per-user-control basis, letting you store part o
....Read More |
Rating
|
|
|
|
|
|
|
|
|
Caching ASP.NET Pages
|
Total Hit (868) |
ASP.NET includes a simple yet powerful way to increase a Web server's throughput by allowing the entire response content from dynamically generated pages to be cached.
|
Rating
|
|
|
ASP.NET Caching Features
|
Total Hit (902) |
When clients access an ASP.NET page, there are basically two ways to provide them with the information they need:
«li»the ASP.NET page can either obtain information from server resources, such as from data that has been persisted to a database, or
the ASP.NET page can obtain information from w
....Read More |
Rating
|
|
|
A Sliding Window Cache
|
Total Hit (965) |
An example of setting the same "Source" object to expire 20 minutes after it is last accessed looks like:
|
Rating
|
|
|
AutoSortArrayList Class
|
Total Hit (675) |
It can sort any type of object, so long as that class implements the IComparable interface or you have a Comparer object. AutoSortArrayList has a property to assign your Comparer object. For instance, if you want to use AutoSortArrayList for strings, assign System.Collections.CaseInsensitiveComparer
....Read More |
Rating
|
|
|
compile components without having to use a compiler
|
Total Hit (733) |
ability to compile components without having to use a compiler and or push a compiled component
on the server. It completely slipped my mind that we already have support
for this built-in to the pre-release.
|
Rating
|
|
|
Adding controls to PlaceHolders dynamically
|
Total Hit (965) |
A very powerful and flexible way to program sites in ASP.NET is to one .aspx which contains a PlaceHolder control for each area of your screen. You then dynamically fill these controls during each hit of your page. This code will get you started. Notice the "FindControl" method with which you identi
....Read More |
Rating
|
|
|
Simple Login Control
|
Total Hit (1042) |
This control can be used to validate a user's login. This control is compiled as a library and can be used with any ASP .Net application.
|
Rating
|
|
|
Finding the Control ID
|
Total Hit (919) |
How do you find the control ID of the control that made the Postback? Here you go...
|
Rating
|
|
|
|
|
|
|
Using C# with Cookies
|
Total Hit (873) |
A code snippet posted on aspcs about accessing and writing cookies using C#.
|
Rating
|
|
|
|
|
|