Whats the equivalent control or code in MVC of ImageButton
AlternateText="Login" Width="80" ValidationGroup="cslLogin" CommandName="Login" />
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 30, 2013, 2:49 AM EDT
http://stackoverflow.com/questions/596444/html-actionlink-as-a-button-or-an-image-not-a-link
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 30, 2013, 3:10 AM EDT
try like this
@Html.ActionImage("Login", new { id = MyId }, "~/Content/Images/login.gif", "Login")
in controller
Regards,
Iftikar