friendlyURL
Oi pessoal:
Tenho o seguinte tutorial para criação de friendlyURLs em Asp.Net (framework 3.5)
segue meu código resumido:
<%@ Application Language="C#" %>
<script runat="server">
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
RegisterRoutes(RouteTable.Routes);
}
public static void RegisterRoutes(RouteCollection Routes)
{
//more code
return;
}
</script>
Problemas:
RouteTable : "does not exist in the current context"
RouteCollection : "the type or namespace name 'RouteCollection' could not be found (are you missing a using directive or an assemblyreferende?)"
Não estou achando a solução.
Muito obrigado
Esqueci de informar, o tutorial é : http://pt.w3support.net/index.php?db=so&id=45340
Discussão (5)
Carregando comentários...