Click here to Skip to main content
15,903,856 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
design page(default.aspx) like this

ASP.NET
<asp:label id="label1" runat="server">
</label>


default.aspx.cs page like this
HTML
label1.text=session["emp"];


my probelm is .aspx.cs page appears label1 does not exist in the current context
how to rectify.


please help me.
Posted

1 solution

What is </label> in your design page ?

It should be :
ASP.NET
<asp:label id="label1" runat="server"></asp:label>
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900