troubleshooting Question

The name does not exist in the current context

Avatar of mcrmg
mcrmg asked on
ASP.NET
3 Comments1 Solution138 ViewsLast Modified:
hi,

I installed VS2017 and am moving webpages from website into a new webapplication. I am getting


Error      CS0103      The name 'msg' does not exist in the current context      


any ideas?  thanks


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;




public partial class CremacLogin : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {


        Session["level"] = null;
        Session["user"] = null;

        msg.Text = Request.QueryString["msg"];


    }
ASKER CERTIFIED SOLUTION
Miguel Oz
Senior Software Engineer
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros