Reputation: 47587
I got web app which uses ms mvc. I'm still living in stone age - using IIS5. I'm not aware how to make URL`s clean in it (without .aspx postfix) and i do not care, cause production environment won't use 5th version. But it's irritating when testing app manually.
I need a way how to make those URL`s clean or to get version of IIS inside in app to determine if .aspx postfix is needed.
Upvotes: 0
Views: 735
Reputation: 1187
Try Request.ServerVariables["SERVER_SOFTWARE"], should come out as "IIS/5.1" if it's populated at all.
Upvotes: 2