Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string intlistid = Request["INTID"];
            string intuid    = Request["ID"];
            string control   = Request["Control"];


            if (intuid != "")
            {
                SPSecurity.RunWithElevatedPrivileges(delegate()
                {
                    API.Integration.IntegrationCore core = new API.Integration.IntegrationCore(Web.Site.ID, Web.ID);
                    SPListItem li = core.GetListItemFromExternalID(intlistid, intuid);
                    if (li != null)
                    {
                        RedirectTo(li, control);
                    }
                    else
                    {
                        lblError.Text = "Could not find item";
                    }
                });
            }
            else
            {
                RedirectTo(control);
            }
        }