TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Valerie Meunier
NA
693
84.2k
Label1 doesn't exist in current context
May 8 2021 8:54 AM
Hi
this code gives the error "Label1 doesn't exist in current context":
aspx-code
<asp:Button ID=
"Button1"
runat=
"server"
/>
<asp:Label ID=
"Label1"
runat=
"server"
></asp:Label><br />
code-behind:
partial
class
oop : System.Web.UI.Page
{
protected
void
Button1_Click(
object
sender, System.EventArgs e)
{
Label1.Text =
"ok"
;
}
}
Thanks for help.
Reply
Answers (
2
)
Multiple file upload with ASP.NET WebApi
asp.net core if condition is not working properly