O
Ole Viaud-Murat
Hello,
i just asked myself if it was possible to create a HttpHandler that
listens to a specific path scheme like
~/reports/subpath1/subpath2/*.extension
Currently i just manage to get simple Paths to work, like:
~/reports/*.extension
So it seems that asp.net's HttpHandlers have a restriction to only
work with Paths of a depth of 1, making paths like ~/reports/subpath1/
subpath2/*.extension impossible to work for HttpHandlers.
I use a workaround in the handlers section of the web.config:
i change
<add ... path="reports/subpath1/*.csv" ... />
to
<add ... path="reportssubpath1/*.csv" ... />
And change the corresponding link-factory to create links that point
to that paths. But this seems to be pretty bad practive afaic.
I know, that the use of asp.net MVC would (hopefully?) "rectifiy" this
limitation of asp.net but perhaps i'm missing something? I'd like to
implement such thing now, before switching to mvc.
Would that be possible in asp.net 3.5, without the use of MVC?
thanks in advance for any hints
Ole
i just asked myself if it was possible to create a HttpHandler that
listens to a specific path scheme like
~/reports/subpath1/subpath2/*.extension
Currently i just manage to get simple Paths to work, like:
~/reports/*.extension
So it seems that asp.net's HttpHandlers have a restriction to only
work with Paths of a depth of 1, making paths like ~/reports/subpath1/
subpath2/*.extension impossible to work for HttpHandlers.
I use a workaround in the handlers section of the web.config:
i change
<add ... path="reports/subpath1/*.csv" ... />
to
<add ... path="reportssubpath1/*.csv" ... />
And change the corresponding link-factory to create links that point
to that paths. But this seems to be pretty bad practive afaic.
I know, that the use of asp.net MVC would (hopefully?) "rectifiy" this
limitation of asp.net but perhaps i'm missing something? I'd like to
implement such thing now, before switching to mvc.
Would that be possible in asp.net 3.5, without the use of MVC?
thanks in advance for any hints
Ole