I have a button and a label.
on clicking on that button i want to change the text of label.
How can i do this in Asp.net mvc 1.0.
I have a button and a label. on clicking on that button i want
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unlike in ASP.NET Webforms, there are no events in ASP.NET MVC!
You could use
HtmlHelper.ActionLinkto create a link to the current view with a parameter containing the new label text.For simple things that don’t really deserve a parameter I would simply use JavaScript though.