I’m using ASP.NET 3.5 web forms.
I’ve stored my site path in web.config adding key named “CommonPath”.
Now I’ve one simple html page and want to use this key on this static html page.
So how can i do this? or Is there any other way for this?
Thanks in advance
What I did in the past was to register “.html” pages to be interpreted as dynamic pages, too. (I.e. just like ASPX).
This can be done through your “web.config” file:
and
As Robert points out, this works well with IIS 7 and IIS 7.5 (and probably on above versions, too). If you are using IIS 6, you have to do it through the IIS Management Console.