I am working at learning visual studio 2010 plus working with asp.net with c# and have run into an error that I seem to not be able to fix. Everything seems ok with the coding, but think I am missing something. I am getting an error "The name 'AuthenticatedMessagePanel' does not exist in the current context" Plus the same errors with 4 other names. The following is what I have: (the lines underlined are the problem childs)
login.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
namespace WebApplication8
{
public partial class login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request.IsAuthenticated)
{
AuthenticatedMessagePanel.Visible = true;
AnonymousMessagePanel.Visible = false;
}
else
{
AuthenticatedMessagePanel.Visible = false;
AnonymousMessagePanel.Visible = true;
}
}
private static voi
View Complete Post