Prashant Malav

Prashant Malav

  • NA
  • 80
  • 19.8k

The name 'Label1' does not exist in the current context.

Sep 1 2015 2:14 AM
Hello..
i have one datalist.i use label1 in my .net design page index.aspx i write the code in index.aspx.cs page.
string name = Label1.Text.Trim();
Session["name"] = name;
but Label1.Text error show "The name 'Label1' does not exits in the current context"
This stupid problem lost my 2 day.
Please solution provide me..

Answers (7)