I have the following lines of code:
SPList thisList = oWeb.Lists[new Guid(Request.Url.QueryString).Get("List")];
SPListItem thisItem = thisList.GetItemById(int.Parse(Request.QueryString["ID"]));
But the Request.Url.QueryString does not resolve correctly. I have included the following using statements:
using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using System.Web;
using System.Reflection;
using Microsoft.SharePoint.Utilities;
When I right click I usually get a "Resolve" menu option if I have forgotten to put in a usings statement at the top but that does not appear.
How can I use Request to get the parameters passed into a SharePoint application page?
LayoutsPageBase
? – Nadeem Yousuf-AIS Feb 13 '15 at 11:22