471,348 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

How can I process extension-less files in a C# ASP.NET 2.0 app?

Hello,
I've found other posters (espeically Pavel) to be very helpful with
questions like these, so here I go again:

I'm making progress with my RESTful C# web service using .NET 2.0, but am
still having some difficulty setting up a web application that can handle
file-extension-less URLs of the form

http://www.mydomain.com/widgets/12345

(which is a RESTful way to ask for info about Widget #12345)

I can't seem to get it to work without some sort of file extension, and am
currently using

http://www.mydomain.com/api.ashx/widgets/12345

which works, but is not ideal. I've looked at VirtualPaths, URL Rewriting,
ISAPI filters, etc, but with no luck. I'm pretty sure it can be done, but
just haven't found the right approach yet.

Thanks in advance for any pointers!
-MMC
Sep 9 '08 #1
0 818

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Greg Merideth | last post: by
reply views Thread by Jeffery Tyree | last post: by
335 posts views Thread by extrudedaluminiu | last post: by
3 posts views Thread by Marcin Kalicinski | last post: by
11 posts views Thread by sturlamolden | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.