wanted to make a server transfer to the master page

0

I'm trying to make a server transfer to my master page but it's giving this error:

No HTTP processor found for request type 'POST' Description: Unhandled exception while executing the current Web request. See the stack trace for more information about the error and its source point in the code.

The code that I have and in the aspx page:

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

master page:

int id = Convert.ToInt32(Context.Items["id"]);
    
asked by anonymous 25.01.2018 / 16:02

1 answer

0

You can not do a transport or redirection to MasterPage.master , it is not an ordinary page, but a resource to be used as a template when being inherited by other pages. You need to create a new page to target your Server.Transfer() .

    
01.02.2018 / 07:36