3
I don’t know if it’s a frequent question, or something that’s not possible. During my studies I realized that it was possible to do this with PHP, but I didn’t see anything with ASP.NET Web Forms.
I made a URL of the same page:
routes.MapPageRoute("Pagina de Teste",
"teste-usuario.com",
"~/teste.aspx");
When I turn the page teste-usuario.com
she carries the teste.aspx
.
My question is this, 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 user-friendly URL (test-user.com) instead of teste.aspx
to load the same page. I would not like to leave the page name visible (test.aspx).
I have another default document, and wanted to do the same but for several pages, calling by the created friendly url understands?
– Voltz