2. 2
Daniel Fisher CTO.
MCP, MCTS, MCPD…
Mit-Gründer und Geschäftsführer von
devcoach®
Mit-Gründer und Vorstand der
just community e.V.
Leiter der .NET-Nieder-Rhein
INETA User-Group
Mitglied im Microsoft
Community Leader & Insider Program (CLIP)
Connected Systems Advisory Board
8. 8
Usability-Guru Jakob Neilsen recommends that
URLs be chosen so that they:
Are short.
Are easy to type.
Visualize the site structure.
"Hackable," allowing the user to navigate through
the site by hacking off parts of the URL.
daniel.fisher@devcoach.biz
9. 9
Dynamic web pages like ASP.NET rely on
parameters as non web apps do.
Web applications user GET or POST variables
to transmit values.
Query strings are
Not soooooo nice
Hard to remember
Look like parameters
Internally they are but for instance looking at a categories
products is not seen as an action by the user…
daniel.fisher@devcoach.biz
18. 18
IIS URL Rewrite Module updates ASP.NET bugs
"~" is resolved incorrectly when using URL rewriting
SiteMap.CurrentNode property returns null when sitemap
contains virtual URLs
Only if the machine has .NET Framework version 3.5
SP1 or higher.
If .NET is installed after URL Rewrite re-install or
repair!
26. 26
Code your own matching logic
Code your own rule provider
Code your own replace mechanizm
27. 27
IIS 7 is configured to not authenticate
content that is not handled internally
A virtual URL points to an non-existent file
You need to enable URL Authentication on rewriten
requests
A) Change preCondition of UrlAuthenticationModule
B) Call Authentication yourself
49. 49
URL rewriting is used to
manipulate URL paths
before the request is
handled by the Web
server.
The URL-rewriting module
does not know anything
about what handler will
eventually process the
rewritten URL.
In addition, the actual
request handler might not
know that the URL has
been rewritten.
ASP.NET routing is used
to dispatch a request to a
handler based on the
requested URL path.
As opposed to URL
rewriting, the routing
component knows about
handlers and selects the
handler that should
generate a response for
the requested URL.
You can think of ASP.NET
routing as an advanced
handler-mapping
mechanism.
50. 50
The presentation content is provided for your personal information only. Any commercial or non-commercial use of the presentation in full or of any text or graphics
requires a license from copyright owner. This presentation is protected by the German Copyright Act, EU copyright regulations and international treaties.