I do not know if it's a frequent question, or something that is not possible. During my studies I realized that it was possible to do this with PHP, but I did not see anything with ASP.NET Web Forms.
I made a URL from the same page:
routes.MapPageRoute("Pagina de Teste",
"teste-usuario.com",
"~/teste.aspx");
When I pass the page teste-usuario.com
it loads teste.aspx
.
My question is as follows, I have an AJAX method.
jQuery.ajax({
type: "POST",
data: "objeto",
url: "teste.aspx/metodoTeste",
contentType: "application/json; charset=utf-8",
dataType: "json",
Being metodoTeste
my WebMethod and teste.aspx
where this method is located.
I wonder if it is possible to pass my friendly URL (test-user.com) instead of teste.aspx
to load the same page. I would not like to make the page name visible (test.aspx).