Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:445580
More Search Options
RSS Available
Matching Posts
Re: "Special" url encoding
ahh brilliant shadowchaser. not sure why I missed that before, we are even using a custom route already to make sure they are all rendered as lowercase, duhhhh.
Posted to
ASP.NET MVC
(Forum)
by
f00sion
on 1/8/2009
Re: "Special" url encoding
yeah the new column with a url friendly name is a good plan... unfortunately we don't have access to change anything in the database that we are reading from... I may just end up making extension methods for each type of link and encoding the parameters before calling the regular actionlink extensions.
Posted to
ASP.NET MVC
(Forum)
by
f00sion
on 1/7/2009
"Special" url encoding
We have a special rule that we want to use where any params in a link will have certain characters replaced, ie space replaced with -. Obviously it would be easy to create a method to encode all the values that you can call each time you create a link but I would rather not have worry about it and hopefully still use the expression-based link extensions. Ideally I could use existing helpers and all the changes would be transparent. Is there a good place to hook in for this? ex: Html.ActionLink<
Posted to
ASP.NET MVC
(Forum)
by
f00sion
on 1/6/2009
Re: Ignore route for default document?
I gave an example above but here is the exact code. routes.MapRoute( "Default" , "mycontroller/myaction" , new { controller = "mycontroller" , action = "myaction" } ); The registered routes are irrelevant because there is no catchall and they don't look anything like the default request. In fact, you can have zero routes in the table and the default document still won't be served.
Posted to
ASP.NET MVC
(Forum)
by
f00sion
on 12/18/2008
Re: Ignore route for default document?
I gave it a shot like this: routes.IgnoreRoute("index.html"); But didn't expect it to work since index.html wouldn't match any of my route patterns anyway so no reason to explicitly exclude it.
Posted to
ASP.NET MVC
(Forum)
by
f00sion
on 12/18/2008
Re: Ignore route for default document?
I have no issues running the project on iis6, everything works great, extensionless, etc, etc. the mvc configuration is all taken care of. The issue is how to get iis to still serve the default document without the mvc routing interfering. Let me provide a simple example, pretend you only have 1 route in your table: controller1/action1 So only visitors going to mydomain.com/controller1/action1 should run through mvc. You have lots of other static html files/images/etc. those can still all be accessed
Posted to
ASP.NET MVC
(Forum)
by
f00sion
on 12/18/2008
Re: Ignore route for default document?
Using iis6, just the standard 404 page showing. Html file is there, I can access it directly at domain.com/index.html.
Posted to
ASP.NET MVC
(Forum)
by
f00sion
on 12/17/2008
Re: Ignore route for default document?
Yes, IIS has index.html at the top of its default document configuration.
Posted to
ASP.NET MVC
(Forum)
by
f00sion
on 12/17/2008
Re: Ignore route for default document?
yeah, the default document is configured correctly. works great until we deploy the mvc project to iis, then i suspect the routing engine gets in the way of things.
Posted to
ASP.NET MVC
(Forum)
by
f00sion
on 12/17/2008
Ignore route for default document?
Is there any way to serve up the default document in the root folder without going through the mvc routing? We are currently converting portions of our site at a time over to an mvc project but our homepage is a static html file that is updated periodically by an external app. I removed the default /controller/action/id route from global.asax and added index.html to the ignore collection. I can go to mydomain.com/index.html and it works as expected but just mydomain.com/ returns a 404. I guess in
Posted to
ASP.NET MVC
(Forum)
by
f00sion
on 12/17/2008
Page 1 of 8 (76 items) 1
2
3
4
5
Next >
...
Last ยป
WindowsClient:
Tale of two tweets - VS beta - is it busy 70% of the time or is it brilliantly fast?
Mix Online:
Using the HTML5 Video and Audio Tag with Gestalt
WindowsClient:
Subclassing Shape (or more accurately, Path)
WindowsClient:
Having trouble deleting files? Try this
Channel 9:
Nick Baker: Xbox Architecture
TechNet Edge:
Thrive Live! Behavioral Interviewing: A behavioral answer is always the correct answer
ASP.NET:
PDC and Tech-Ed Europe Slides and Code
WindowsClient:
JScript location bar silliness
WindowsClient:
Anybody build a XAML parser in C or C++ yet?
WindowsClient:
Silverlight use, power and deployment keeps growing; so does WPF
ASP.NET:
T4CSS: A T4 Template for .Less CSS With Compression
WindowsClient:
JSON-P: An Elegant Hack
Channel 9:
Photosynth Update and New UI
Channel 9:
First Look: Streetside in Bing Maps
Channel 9:
Coding4Fun at PDC 2009
WindowsClient:
10 Must-See PDC 09 Sessions
Channel 10:
Photosynth Updated with New Release and New UI
Channel 10:
WindowsBlinds 7 Now Works with Windows 7
Channel 10:
Zune HD Launches New Colors
ASP.NET:
PDC09: ASP.NET MVC 2: Ninjas Still on Fire Black Belt Tips
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online