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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -