asp.net mvc 3 - UrlHelper.GenerateUrl -


Can you provide a sample using Urlhelper.GenerateUrl within the Action Filter using only the Target Controller and Action Are you

  var url = UrlHelper.GenerateUrl (empty, "action", "controller", empty , MargTab.Rout, HttpContext.Current.Request.RequestContext, Incorrect);   

or

  var urlHelper = new UrlHelper (HttpContext.Current.Request.RequestContext); Var url = urlHelper.Action ("verb", "controller");    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -