User Profile

Collapse

Profile Sidebar

Collapse
witnes
witnes
Last Activity: Apr 1 '10, 09:12 AM
Joined: Jul 31 '06
Location: L'viv, Ukraine
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • According to http://www.geekinterview.com/question_details/66728 the ViewState is available in page_load event.
    See more | Go to post

    Leave a comment:


  • witnes
    replied to Is it possible to implement template
    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)...
    See more | Go to post

    Leave a comment:


  • witnes
    started a topic Is it possible to implement template

    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>...
    See more | Go to post

  • witnes
    started a topic The earliest event at which ViewState available
    in .NET

    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)...
    See more | Go to post
No activity results to display
Show More
Working...