How to do action on clicking of an image in asp.net mvc application ?
Please explain with example .
Thanks
Action on clicking of an Image in ASP.NET MVC
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Guest UserRank #259 · 9.8K reputationPosted Jul 9, 2014, 4:08 PM EDT
id="logo"> href="@Url.Action("someaction", "somecontroller")"> src="../../Content/img/logo3.png" alt="" /> The other way is use below code in .cshtml file @HTML.Image("/images/img1.png","alt","100")Anupam SinghRank #643 · 3.7K reputationPosted Jul 9, 2014, 8:27 PM EDT
read this thread :http://stackoverflow.com/questions/596444/html-actionlink-as-a-button-or-an-image-not-a-link
Himanshu Pandya60 reputationPosted Jul 10, 2014, 2:06 AM EDT