protected void Page_Load(object sender, EventArgs e)
        {
            intProfile       = Int32.Parse(Request.Cookies["profileid"].Value);
            oPage            = new Pages(intProfile, dsn);
            oAppPage         = new AppPages(intProfile, dsn);
            oApplication     = new Applications(intProfile, dsn);
            oUser            = new Users(intProfile, dsn);
            oResourceRequest = new ResourceRequest(intProfile, dsn);
            oFunction        = new Functions(intProfile, dsn, intEnvironment);
            if (Request.QueryString["pageid"] != null && Request.QueryString["pageid"] != "")
            {
                intPage = Int32.Parse(Request.QueryString["pageid"]);
            }
            if (Request.Cookies["application"] != null && Request.Cookies["application"].Value != "")
            {
                intApplication = Int32.Parse(Request.Cookies["application"].Value);
            }
            oFunction.Alert(Page, "assigned", "The technician has been assigned and an email notification was sent", "Request Assigned");
            strRedirect   = oPage.GetFullLink(intAssignPage);
            lblTitle.Text = oPage.Get(intPage, "title");
            DataSet ds = oResourceRequest.GetAwaiting(intProfile);

            if (Request.QueryString["all"] != null)
            {
                ds = oResourceRequest.GetAwaitingBuddy(intProfile);
                ddlType.SelectedValue = "1";
            }
            oPage.LoadPaging(ds, Request, intPage, lblPage, lblSort, lblTopPaging, lblBottomPaging, txtPage, lblPages, lblRecords, rptView, lblNone);
            ddlType.Attributes.Add("onchange", "LoadWait();");
        }