The issue is solved in
http://forums.asp.net/thread/1527065.aspx
using System.Web;
using System.Web.UI;
using System.Reflection;
public class PageUtil
{
public static bool IsPageValidated()
{
Page page = HttpContext.Current.Handler as Page;
if (page == null) throw new HttpException("This method can be called only in classes derived from System.Web.UI.Page");
FieldInfo fieldValidated = typeof(Page).GetField("_validated", BindingFlags.Instance | BindingFlags.NonPublic);
return (bool)fieldValidated.GetValue(page);
}
}
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com