Hi,
I am trying to use the Request.Cookies("Cookiename") , Response.Cookies.Add(Cookiename)and Server.HtmlEncode(Request.Cookies("Cookiename) methods but get the following error,
'Compiler Error Message: BC30451: 'Request' is not declared. It may be inaccessible due to its protection level .
The detailed compiler report is idenfifying 'Request', 'Response' and 'Server' with this error. Can anyone say what I am doing wrong?, the following imports are shown on the complete compilation source.
Imports DotNetOpenAuth.AspNet
Imports Microsoft.Web.Helpers
Imports Microsoft.Web.WebPages.OAuth
Imports System
Imports System.Collections.Generic
Imports System.IO
Imports System.Linq
Imports System.Net
Imports System.Web
Imports System.Web Line
Imports System.Web.Helpers
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.WebPages
Imports System.Web.WebPages.Html
Imports WebMatrix.Data
Imports WebMatrix.WebData
Many Thanks