ok i have created a new class and placed the code which you have given inside that class.
then the remainind section i am not getting.page load of which page?
if it is in any page also,it should work.
I ma having one main page and am dividing it int 3iframes.so load event of which page i shoul write?
i am callig pages dynamically in these frames depends on the requirements.
then one more thing is,in,SessionCheck.Session("Give your Session Value"). ,what is the session value?
cheers