Last post Jan 20, 2011 04:44 AM by pradeep.peruru
Oct 29, 2009 08:26 PM|shams_pabani|LINK
I am using Intelligencia url rewriter for my project and have run in a small problem. I have a regular expression like
<rewrite url="~/(.+)/(.+)/(.+).aspx" to="~/Article.aspx?a=$3&s=$2&p=$1"/>
so a page request like
/parent/category/articlename.aspx is interpreted as /Article.aspx?a=articlename&s=category&p=parent.
This above is all fine, but now when I do a postback (a login block), it picks up the url /Article.aspx?a=articlename&s=category&p=parent and interprets as /Article.aspx?a=article&s=category&p=parent.
Now, how can I make sure that on the postback, it still throws back the original url /parent/category/articlename.aspx so that the url is properly interpreted?
Oct 30, 2009 03:08 AM|Beginneerr|LINK
still i am not getting yr prob.
i hv used same dll and i hv made small demo for URL rewrite .
i am using following Reg Ex.
<rewrite url="~/Store/(.+)" to="~/DynamicPage.aspx?MyTitleId=$1"/>
i have just print some text on postback(button click) and i got output.
Oct 30, 2009 04:26 AM|shams_pabani|LINK
Had to add this
<%@ Register TagPrefix="url" Namespace="Intelligencia.UrlRewriter" Assembly="Intelligencia.UrlRewriter" %>
and use <url:form> instead of <form>
it was postback and then try redirecting the page to itself and you'll see what comes up in the url.
Aug 12, 2010 05:35 AM|laura.zarioiu|LINK
This solves my problem with the url rewrite, but i don't know for what reason it breaks my sticky footer (i'm using: http://ryanfait.com/sticky-footer/). Does this happen to anyone else?
url rewrite intelligencia.urlrewrite
Sep 10, 2010 09:30 AM|Mustang95|LINK
the <url:form> does solve that issue for me as well, however, all required field validators now do not stop button post backs...
Oct 08, 2010 08:41 AM|laura.zarioiu|LINK
In the Page_Load in my master page i'm using: form1.Action = Request.RawUrl; and everything works fine. Hope it helps you.
Nov 28, 2010 08:13 AM|prontonet|LINK
thanks worked for me to
Jan 20, 2011 04:44 AM|pradeep.peruru|LINK
Thanks!!! It works for me too...