7
Reply

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

Prashant Malav

Prashant Malav

Sep 1 2015 2:14 AM
508
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)