Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26542

Read/Write cookies in WebMatrix3

$
0
0

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

 


Viewing all articles
Browse latest Browse all 26542

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>