mesut de

mesut de

  • NA
  • 1
  • 1.2k

URL Routing error in ASP.Net 4.0

Oct 21 2013 7:54 AM
hi..
this code error 
please help..

code screen

HTTP Hatasi 404.0 - Not Found

Aradiginiz kaynak kaldirilmis, adi degistirilmis ya da geçici olarak kullanim disi.




<a href="<%#Ayarlar.UrlSeo(Eval("KategoriID").ToString().ToLower()) %>.html"> <span><%#Eval("KategoriAdi") %> </span></a>

            Kat = Page.RouteData.Values["Kat"].ToString();


global.asax

            

    void Application_Start(object sender, EventArgs e) 
    {
        // Code that runs on application startup

 
        RoutingAyarlari(RouteTable.Routes);

    }


    void RoutingAyarlari(RouteCollection routes)
    {


        routes.MapPageRoute("Filtrele", "{KategoriID}.html", "~/Filtrele.aspx");

    
    }