Posted on: 4/14/2011 11:47:29 AM | Views : 982

Hi,
Initillay my code was working fine when and I was able to logout from the application.
But since the time I have added below line of code, I am not able to logout from the application. The Logout status becomes Login but
I was able to do all the work that a Logged In person can do. I dont know how to handle this please help me. I beleive that Page_PreInit and
and OnInit methods are creating problem but I dont know how to overcome this problem.
protected void Page_PreInit(object sender, EventArgs e) { Control myControl = null; try { myControl = GetPostBackControl(Master.Page); if ((myControl != null)) { if ((myControl.ID.ToString() == "ButtonToAddFileUploadControl")) { minimumFileUploadControlCounts = minimumFileUploadControlCounts + 1; } } } catch { } } ...

Go to the complete details ...