asp.net mvc 3 - selected menu item in mvc3 -
i creating first mvc3 application (no previous mvc either) wanting create top level menu , able add "selected" or "active" css class select li tag. found link active menu item - asp.net mvc3 master page ihave tried add class error "error 1 'system.web.mvc.htmlhelper' not contain definition 'actionlink' , no extension method 'actionlink' accepting first argument of type 'system.web.mvc.htmlhelper' found (are missing using directive or assembly reference?) g:\mvcmusicstore-v2.0\mvcmusicstore-completed\mvcmusicstore\helpers\htmlhelpers.cs 26 31 mvcmusicstore "
so thinking missing reference don't know what. can kindly tell me need reference work.
add following using @ top of htmlhelpers.cs
file:
using system.web.mvc.html;
now htmlhelper.actionlink
line should compile fine.
Comments
Post a Comment