Since SEO comes into consideration it becomes the part of web development. These days every website being developed should be optimized to some extent so it could get crawled by Search Engines.Its advisable that you should take care of your URL's rather than showing them in a raw format make them readable by user as well SEO friendly. URL is the important part that search engines want to take a look before they crawl the pages of your website. There are enormous open source libraries and ISAPI filter available that provides support to help you rewriting your URLs. The SEO and url rewriting is now taken into account and is introduced a supported extension for IIS 7.0/7.5 by providing URLRewriterExtension. But here we're going to discuss how you can rewrite you URL in your Asp.net website with just 3 steps.
span style="font-family: 'Courier New';">protected void Page_Load(object sender, EventArgs e) { int catid = Convert.ToInt32(HttpContext.Current.Items["catid"]); var product = awe.Products.Where(item => item.ProductSubcategoryID == catid); GridView1.DataSource = product; GridView1.DataBind(); } You can download the complete source code of this post from here Article Source Code Thank for giving your time reading this post. Please leave a comment for any questions/suggestions.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: