How to get a route value in the view (Asp.net Mvc) -
is there alternative route value in view page instead of read querystring ?
@html.actionlink("language resources", "index", "languageresource", new { languagecode = request.querystring["languagecode"] , "")
don't rule out keeping simple:
public actionresult action(int id) { return view( id); }
indicate type of model we're dealing with
@model int
and refer value in typed way via:
@model
Comments
Post a Comment