TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shane atkin
NA
1
0
MasterPage generates parser error
Jul 11 2008 3:14 AM
Very simple declaration in masterpage causing this error
"Compiler Error Message: CS0103: The name 'User' does not exist in the current context"
here is the masterpage codebehind file
public partial class MasterPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
if (User.IsInRole("Administrators"))
ImageButton.Visible = true;
can anyone help?
Reply
Answers (
1
)
membership
caching