wanted to make a server transfer to the master page

Asked

Viewed 24 times

0

i am trying to make a server transfer to my master page but this to give this error:

No HTTP processor found for the 'POST' request type Description: Unprocessed exception when executing the current web request. See stack tracking for more information about the error and its source point in the code.

the code I have and on the aspx page:

Context.Items["id"] = c.idCliente;
Server.Transfer("~/MasterPage.master");

master page:

int id = Convert.ToInt32(Context.Items["id"]);

1 answer

0

You cannot make a transport or redirect to the MasterPage.master, it is not a common page, but a resource to be used as a template when inherited by other pages. You need to create a new page to serve as your destination Server.Transfer().

Browser other questions tagged

You are not signed in. Login or sign up in order to post.