URL rewriting with dynamic data

sisco222

New Member
I am displaying records on the basis of search criteria like the tags. On click any record it navigate to page with profile page. I managed to write URL for tags but stuck with the profile page as I have to change URL using multiple dynamic data. Here is my code where I am displaying tags URL:\[code\]protected void rdTag_checkchanged(object sender, EventArgs e){ Int32 tagId = Convert.ToInt32(Session["tagId"]); switch (tagId) { case 1: Response.Redirect("/Tags/Geek"); break; case 2: Response.Redirect("/Tags/Badhair"); break; case 3: Response.Redirect("/Tags/Angry"); break; case 4: Response.Redirect("/Tags/Nasty"); break; case 5: Response.Redirect("/Tags/Funny"); break; case 6: Response.Redirect("/Tags/Sexy"); break; default: break; } }\[/code\]Web.config\[code\] <rewriter> <rewrite url="~/Tags/(.+)" to="~/Home.aspx?tagsquery=$1" /> </rewriter>\[/code\]Now I want to display URL \[code\]abc.com/state(dynamic)/city(dynamic)/name(dynamic)\[/code\] which I am not able to understand how to do.Thanks in advance for any helpful suggestions.
 
Back
Top