Tuesday, May 6, 2014

Button with in Anchor tag works in IE8 and 7 for MVC

Button with in Anchor tag works in IE8 and 7 for MVC. Just add the below highlighted onclick="javascript:window.location=this.href"     as shown below in the "a" tag.

 <a href="@Url.Action("EventReg", "Events", new {Pgm_ID = ViewBag.PgmID})" onclick="javascript:window.location=this.href">
        <button>Register</button>
       </a>    

No comments:

Post a Comment