Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex 35 posts 55 karma points
    Sep 28, 2010 @ 09:04
    Alex
    0

    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?

  • Sean Mooney 131 posts 158 karma points c-trib
    Apr 05, 2011 @ 16:51
    Sean Mooney
    0

    Hey Alex,

    I am running into the same problem, did you find a solution for this?

    Thanks, Sean

Please Sign in or register to post replies

Write your reply to:

Draft