Form action and Context.RewritePath

A

Ayende Rahien

I've a very annoying problem, I'm using Application_BeginRequest() and
Context.RewritePath to hide query strings.
The problem that I've is that a form that I submit to /Comments/17.aspx has
form action of CommentView.aspx?story=17 (which is where the
Context.RewritePath sent it).
The problem that I'm having is that the end result is that the form end up
being submitted to /Comments/CommentView.aspx?story=17, which doesn't even
exist.
How do I solve it?
I know that I can change Application_BeginRequest() to recognize it, but
surely more elegant way exist.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top