Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
12
Reply
A problem with button click
ehsan soltani
Jun 4 2015 8:07 AM
506
Reply
Dear C#corner
I have a problem to know the numbers of clicks on a buttons.
this is my program but It is not true;
int c=0;
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = c.ToString();
c = c + 1;
}
after clicking on button, c will be 1 and it does not change anymore.
best regards
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
12
)
Next Recommended Forum
.Net
Complain monitorig system