views:

67

answers:

1

I'm building an application using ASP.Net MVC, and I want/need it to work with and without javascript enabled. The first stumbling point for me is this: When the user clicks on the register link, if they don't have javascript enabled they should be sent to a registration page that has master page stuff around it... but if they do have javascript enabled then I want the registration form (the same thing from the registration page to come up in a div above the page and fade out the background...

What is the best way to design this to keep it simple and minimize code duplication?

+2  A: 

This is a good article that gives a solution for this problem
http://weblogs.asp.net/rashid/archive/2009/04/15/adaptive-rendering-in-asp-net-mvc.aspx

Marwan Aouida
Looks good... reading through it now... thank you
Max Schmeling
ok this doesn't actually help me because I don't need to render json back to the client if javascript is enabled, i just need to render back the (for instance) registration control instead of the entire registration page...
Max Schmeling
i'm sure this article would help with that if i didn't suck with ASP.Net MVC atm
Max Schmeling