ASP.NET MVC dynamic view sections(blog.maartenballiauw.be)

submitted by rcashrcash(4149) 8 months, 15 days ago

How to create a change settings page on which various sections can be rendered based on which plugins are loaded in the application. To do this, I quickly hacked together a SettingsViewModel, to which can be add all section view models no matter what type they are. Read article to see example code.

2 comments |category: |Views: 45

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 dpetersondpeterson(4393) 8 months, 14 days ago 0

Sometimes the simplest solution is the best, you could even decide which views to render or not render based on your settings here (rather than just looping through and rendering each). I could see this being very useful in a situation where users could control what is on the screen (show me a chat module here, a latest stories module here, etc).

Reply

posted by rcashrcash(4149) 8 months, 14 days ago 0

Good points. I could see how that would work especially with the chat module. You're right. Simpler ideas can revolutionize how we operate.

Reply

information Login or create an account to comment on this story