protected internal virtual NameValueCollection DeterminePostBackMode ()
{
// if request was transfered from other page such Transfer
if (_context.IsProcessingInclude)
return null;
HttpRequest req = Request;
if (req == null)
return null;
NameValueCollection coll = null;
if (0 == String.Compare (Request.HttpMethod, "POST", true, Helpers.InvariantCulture))
coll = req.Form;
else {
string query = Request.QueryStringRaw;
if (query == null || query.Length == 0)
return null;
coll = req.QueryString;
}
WebROCollection c = (WebROCollection) coll;
allow_load = !c.GotID;
if (allow_load)
c.ID = GetTypeHashCode ();
else
allow_load = (c.ID == GetTypeHashCode ());
if (coll != null && coll ["__VIEWSTATE"] == null && coll ["__EVENTTARGET"] == null)
return null;
return coll;
}