ASP.NET - Is it possible to trigger a postback from server code?

前端 未结 5 689
温柔的废话
温柔的废话 2021-01-11 16:03

Is it possible to to programmatically trigger a postback from server code in ASP.NET? I know that it is possible to do a Response.Redirect or Server.Transfer to redirect to

5条回答
  •  星月不相逢
    2021-01-11 16:20

    Asp.net Postbacks are initiated from the client (typically form submission). I am not sure what you are trying to achieve. Some of the server side page lifecyle events are already executed and what you are trying to do is raise the previous event handlers again.

提交回复
热议问题