IIRF changes form action attribute

Dec 15, 2009 at 11:55 AM

i have a rule-


RewriteRule   ^/([^/]+)/india-([^/^-]+)-([^/]+)-pages/(\d+).aspx          /$1/detail.aspx?id=$4 [L]

/project/india-a-b-pages/2.aspx  -   project/detail.aspx?id=2


it works fine and url of this format goes to detail  page. Now I view the source of the detail.aspx page. The form's action attribute has become  detail.aspx?id=2(Whatever written at right side of url). So in this page if I do any thing, like clicking a button (this button has a onclick function on server side ) than clicking the button submit the form to URL-

/project/india-a-b-pages/detail.aspx?id=2   which is wrong URL  It doesnt even call the VB side function . it displays page doesnt exist.

rather then it should have gone to Vb file  and call the function on server side. That is what should happen.

I think the problem is the action attribute of the form.

Dec 15, 2009 at 3:16 PM

This is a common problem.

This article describes it in more detail, and what you need to do to fix it.