Hi,
9397sarnala
This Error 'myLabel' does not exist in the current context
Cause of Issue:
I have notice even though label control was there on MyPage.aspx it was not their in MyPage.aspx.designer.cs. So there was something wrong with designer file.
You can do following thing to resolve this issue.
1. First check your code behind file name and Inherits property on the @Page directive, make sure they both match.
2. Delete designer file (Eg: MyPage.aspx.designer.cs) and try to recreate designer file.
3.delete MyPage.aspx.designer.cs file, now right click on MyPage.aspx and select "Convert to web application" it will create new MyPage.aspx.designer.cs file.
Hope this will help you.
thanks