How to use T4 to generate strongly-typed navication class in ASP.NET(blog.devarchive.net)

submitted by olegsycholegsych(335) 4 years, 3 months ago

In this article Kirill Chilingarashvili demonstrates how to use a T4 template to generate a navigation class in ASP.NET. This class contains nested classes that represent folders and string constants that represent users control (.ascx) files in the application. Using such navigation class helps to avoid hardcoding file paths as string literals and because it is automatically generated there is no need to maintain string constants manually.

1 comment |category: |Views: 25

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by olegsycholegsych(335) 4 years, 3 months ago 0

Wow, managed to make a typo in the title. Sorry, Kirill.

Reply

information Login or create an account to comment on this story