Devendra  Kumar

Devendra Kumar

  • NA
  • 517
  • 244.5k

remove rewrite url in web.config and aspx page

Feb 9 2016 1:18 AM
how to remove rewrite url from web.config and aspx page 
 
my code is:
 
<rewriter>
<rewrite url="~/Category-(.+)$" to="~/Category.aspx?name=$1"></rewrite>
</rewriter>
 
and in aspx page:
 
<div class="img" style="text-align: center; margin-top: -40px;"">
<a href='<%=ResolveUrl("~/")%>Category-<%# Eval("SeoCategory_Name")%>' style="font-size: 13px;">
<img style="object-fit: cover; height: 220px; width: 245px; margin-top:-5px;" src='Products/<%#Eval("cat_img") %>' />
</a>
<asp:HiddenField runat="server" ID="hdnId" Value='<%#Eval("Category_Id") %>'/>
</div>
 

Answers (2)