Questions tagged [t4mvc]

T4MVC is an open source utility for Microsoft ASP.NET MVC. It allows replacing magic strings in Views, Controllers and Links to content with strong names/types.

T4MVC is an open source utility for Microsoft ASP.NET MVC. It allows replacing magic strings in Views, Controllers and Links to content with strong names/types.

Resources

245 questions
0
votes
1 answer

T4MVC: What are MVC.Controller.ActionParams are for?

I've found properties corresponding to each action named like this: MVC..Params, they contain parameter names for each action. What are they for and how they can be used?
artvolk
  • 9,448
  • 11
  • 56
  • 85
0
votes
1 answer

Wrong Constructor being called on MVC Controller

I have an MVC controller that has a single constructor, I am using structure map as my IoC container and T4MVC to remove the need for magic strings. On one view I have the follwing: @{ Html.RenderAction(MVC.Master.SideBar()); } @{…
ilivewithian
  • 19,476
  • 19
  • 103
  • 165
0
votes
1 answer

Url Helper Action Being Executed on Controller

I'm not sure what is going on, but the action below is being hit in the controller. Why would it do this? Shouldnt it just render the URL. The _schoolsService is null, but I'm using Ninject. I removed the attributes on the Action and received the…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
0
votes
1 answer

How to remove parameters from URL when using T4MVC

Action method looks like public virtual ActionResult Show(int productId, bool isValid, bool getByStoreId = false) When I call this action I get url like .../Product/Show/221?isValid=True&getByStoreId=True But I want to display just…
1110
  • 7,829
  • 55
  • 176
  • 334
-1
votes
1 answer

T4MVC to have generated formatted URL (SEO)

1) What is the best solution for working with T4MVC to have generated formatted URL (SEO) I want to MVC.AGENCY.INDEX (int? Page, int IdAgency) http://localhost:30120/Agency/AgencyName instead http://localhost:30120/Agency?page=0&IdAgence=2 I…
1 2 3
16
17