Posted on: 4/4/2014 5:43:15 PM | Views : 257

I am using intelligencia URL rewriter. Below is my page load function...on debugging it, i came to know that as the page is loaded with a URL, it works fine..i.e. correct values are loaded via query strings..but after traversing the master page..it again traverses the page_load function..and this time it catches the first link on page & rewrites it according to its rule. 
<rewrite url="~/articles/(.+)/(.+)/(.+)/(.+)" to="~/articles.aspx?mainCat=$1&amp;cat=$2&amp;page=$3&amp;aid=$4"/> <rewrite url="~/articles/(.+)/(.+)" to="~/articles.aspx?mainCat=$1&amp;cat=$2"/>



protected void Page_Load(object sender, EventArgs e) { String mainCat = String.Empty; String cat = String.Empty; String aid = String.Empty; if (!IsPostBack) { cat = Request.QueryS ...

Go to the complete details ...