Came across this while following the LINQ tutorial created by Michael Washington:
If you paste in this code from the website
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using DotNetNuke;
using DotNetNuke.Security;
using LinqThings4Sale;
namespace DotNetNuke.Modules.LinqThings4Sale
{
public partial class Categories : DotNetNuke.Entities.Modules.PortalModuleBase
{
protected void lnkBack_Click(object sender, EventArgs e)
{
Response.Redirect(Globals.NavigateURL(), true);
}
}
}
You will need to add
using DotNetNuke.Common; or you will get an error ("The name GLOBALS does not exist in the current context) when building the page.
Paul