User Profile
Collapse
-
According to http://www.geekinterview.com/question_details/66728 the ViewState is available in page_load event. -
After some investigations I've found answer:
public class CollectionCIass <T> : System.Collecti ons.IEnumerable
{
private List<T> listOfData = new List<T>();
public void Add(T item)
{
listOfData.Add( item);
}
#region IEnumerable Members
public System.Collecti ons.IEnumerator GetEnumerator()
{
foreach (T data in listOfData)...Leave a comment:
-
Is it possible to implement template
Hello. I want to have something like this:
CollectionCIass <int> numbers = new CollectionCIass <int> { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
but I don't know how to implement this collection.
I can do either like this:
internal class CollectionCIass : System.Collecti ons.Generic.ILi st<int>
but then I can't declare variable like CollectionCIass <int> numbers = new CollectionCIass <int>... -
The earliest event at which ViewState available
Who can say when the ViewState the earliest event is available. When I look into msdn I found this events sequence:
1. Instantiate
2. Initialize
3. TrackViewState
4. LoadViewState (postback)
5. Load postback data (postback, IPostBackDataha ndler.LoadPostd ata)
6. Load
7. Load postback data for dynamical controls added on Page_Load
8. Raise Changed Events (postback,
IPostBackDataha ndler.RaisePost DataChanged)...
No activity results to display
Show More
Leave a comment: