Ok, so, the reason I am using MVC (aside from the fact that the fine folks at Microsoft made it) is because of the mega snazzy url rewriting. I need to be able to have customers type in mydomain.com/clientname and be taken to their own personalized section
of the site.
MVC does enable me to do that, no? I would just have to have the index check for a query string text value and use it to find the customer ID then do a redirect?
It makes sense that I would be able to do that, I just wanted to make sure before taking the plunge.
-
-
Yes. You can define your own routehandlers and such.
-
This is hardly anything new. Rails can do this too, and it's in v2 already. ASP.NET MVC is pretty much just a copy of that, which isn't even V1.Bas said:Yes. You can define your own routehandlers and such.
Mind you, Rails is much more mature. It even has it's own data layer! -
Rails is a hog.Chadk said:
This is hardly anything new. Rails can do this too, and it's in v2 already. ASP.NET MVC is pretty much just a copy of that, which isn't even V1.Bas said:*snip*
Mind you, Rails is much more mature. It even has it's own data layer! -
Yah and also, wasn't the url routing stuff pushed back into ASP.NET for everyone to get some love .NET 3.5 SP1?wisemx said:Go IIS7 and you'll be even happier.
http://blogs.iis.net/bills/archive/2008/07/09/new-iis7-releases-url-rewrite-application-routing-and-load-balancing-and-powershell-cmd-lets.aspx
-
Yes. .NET 3.5 SP1 contains URL Routing, but not ASP.NET MVC.HumanCompiler said:
Yah and also, wasn't the url routing stuff pushed back into ASP.NET for everyone to get some love .NET 3.5 SP1?wisemx said:*snip*
-
sure let me just install IIS7 on my xp box, damn, now let me try my 2003 box, damn again....wisemx said:Go IIS7 and you'll be even happier.
http://blogs.iis.net/bills/archive/2008/07/09/new-iis7-releases-url-rewrite-application-routing-and-load-balancing-and-powershell-cmd-lets.aspx
-
Nobody claimed that it was new. Somebody just asked if it was possible. And it is.Chadk said:
This is hardly anything new. Rails can do this too, and it's in v2 already. ASP.NET MVC is pretty much just a copy of that, which isn't even V1.Bas said:*snip*
Mind you, Rails is much more mature. It even has it's own data layer! -
So wait, I don't have to use MVC to take advantage of the url rerouting?Bas said:
Nobody claimed that it was new. Somebody just asked if it was possible. And it is.Chadk said:*snip*
forgive my nievete, but what is different about an MVC application?
-
Normal ASP .Net Page ModelSaraJoRedux said:
So wait, I don't have to use MVC to take advantage of the url rerouting?Bas said:*snip*
forgive my nievete, but what is different about an MVC application?
- Figure out which page to load and call (Normally done with filesystem but you can introduce modules or Virtual Path Providers to make it more interesting)
- Call the ProcessRequest method on the Page
- Use Routing to find the Controller object to call
- Call controller object's action method
- Find View to call
- Load view and send to client
I'm a big fan of this new system. It takes me back to writing web apps in Perl in college where I basically used the same model where one object performed the requested user action and the other displayed the HTML/JS.
-
in our project we used that approach for yearsSampy said:
Normal ASP .Net Page ModelSaraJoRedux said:*snip*
- Figure out which page to load and call (Normally done with filesystem but you can introduce modules or Virtual Path Providers to make it more interesting)
- Call the ProcessRequest method on the Page
- Use Routing to find the Controller object to call
- Call controller object's action method
- Find View to call
- Load view and send to client
I'm a big fan of this new system. It takes me back to writing web apps in Perl in college where I basically used the same model where one object performed the requested user action and the other displayed the HTML/JS.
(our approach uses pure xml for writting the rutes) pretty cool, yes, wondering what will we do after MVC comes out of beta... probably nothing thought 
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.