Question

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.

Was it helpful?

Solution

Try Request.ServerVariables["SERVER_SOFTWARE"], should come out as "IIS/5.1" if it's populated at all.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top