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

android - How can I execute default sms app? -

jquery .css('text-decoration') doesn't work from parents -

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