ASP.NET Dynamic Data Routing Admin/User Views(www.mit560.com)

submitted by MIT560MIT560(102) 8 months, 17 days ago

Adding routing to a ASP.NET Dynamic Data site to accommodate User and Admin Views.

2 comments |category: |Views: 22

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, 16 days ago +1

Do you think this method of access control could easily be extended to support group based ACLs rather than just admin/non-admin? Or do you think a different approach would be better in that case?

Reply

posted by MIT560MIT560(102) replied to dpetersondpeterson(4393), 8 months, 16 days ago 0

You can add as many routes as you want and you can add routes that are specific to custom pages. So viewing the data based on groups is possible. You would need to enter in additional routes like the first two segments of code outlined in the post and only change or add the group name to the route.

As for securing the application using the web.config/ASP.NET User Group approach will only secure at the route level. Meaning only views that are seen through that route can be seen by an associated User Group. To get more granularity (down to the field level) in your application some extension methods will need to be added which has been devised by Stephen Naughton - http://forums.asp.net/post/2730998.aspx

Hope this helps.
MIT560

Reply

information Login or create an account to comment on this story