这样可以啊
private int ID
{
    get
    {
        object obj = Request.QueryString["ID"];
        int intID = (obj == null) ? 0 : Convert.ToInt32(obj);        return intID;
    }
}