September 2006 Entries

Problem in ViewState Loading In case of Dynamic Controls

It's a problem every other ASP.NET programmer often find himself/herself in. The foll is a pretty good link to look in http://weblogs.asp.net/guys... Cheers
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

More abt Generics Overloading

Just to add to my previous blog abt Generics Overloading the folowing scenarion is also very helpful..... Suppose I have a class public class TestClass<T, U> { public void Foo<I>(T val1, I val2, U val3) { } public void Foo<I>(U val1, T val2, I val3) { } } And I'm calling this as static void Main(string[] args) { TestClass<int, string> ob = new TestClass<int, string>(); ob.Foo<double>(1, 122223, "er"); } it will compile pefectly as the permutations of U,T,and I...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Generics OverLoading

Found a very interesting thing reagarding Overloading in Generics. Consider the following scenario class MyClass<T,U,V>{ public void Foo(T val1,T val2){}; public void Foo(U val1,T val2){}; } The method Foo will be treated as an overload..... even though all of T,U,V can be int. But unfornutaely you will get the error during your call to any of the Foo. Cheers..... ...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

ASP.NET Page Life Cycle

I was planning to post this blog quite a few weeks earlier but could not do so because of pretty tight schedule. I was pretty surprised to find out the amount of things that may go on behind the scenes when an .aspx page is loaded. I may skip a few sections as I did not feel that they were that important. However any sincere suggestion will be accepted. The first in the long sequence loading of a .aspx page Pre Init ü No master page , theme is still associated. ü Page Scroll position is...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati