Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I use UrlRewrting.net module shipped with Umbraco 4.5.2. I get nice urls like
www.mysite.com/products/my-product1.aspx
that actually go to www.mysite.com/products.aspx?productId=$1
However, the action attribute of the form tag is rendered as that “ugly” url:
<form action=”/products.aspx?productId=$1” ...
I tried to set it in code (it’s possible in .net 3.5 SP1 and .net 4.0):
Page.Form.Action = “/products/my-product1.aspx”;
but this did not work.
Does anyone know how to fix it or why setting Action in code does not work?
I tried that in Page_Load. Should I do it in another place?
Hey Alex,
I am running into the same problem, did you find a solution for this?
Thanks, Sean
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
UrlRewriting module and Form action attribute
I use UrlRewrting.net module shipped with Umbraco 4.5.2. I get nice urls like
www.mysite.com/products/my-product1.aspx
that actually go to www.mysite.com/products.aspx?productId=$1
However, the action attribute of the form tag is rendered as that “ugly” url:
<form action=”/products.aspx?productId=$1” ...
I tried to set it in code (it’s possible in .net 3.5 SP1 and .net 4.0):
Page.Form.Action = “/products/my-product1.aspx”;
but this did not work.
Does anyone know how to fix it or why setting Action in code does not work?
I tried that in Page_Load. Should I do it in another place?
Hey Alex,
I am running into the same problem, did you find a solution for this?
Thanks, Sean
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.