Home  >  Q&A  >  body text

About pageLoad and ispostback

7. The program code window of an aspx page has the following program. Please read the program and answer the following questions:

1> When will the Load event of the Page object be triggered?

2>. When the page is loaded for the first time, what is the value of the IsPostBack property of the Page object? What will appear on the page?

3>. When the page is loaded again in response to a client postback, what is the value of the IsPostBack property of the Page object? What will appear on the page?

protected void Page_Load(object sender, EventArgs e)

{

if( ! Page.IsPostBack ){

Response.Write("Text1" ; ##

KgcKgc2501 days ago1877

reply all(1)I'll reply

  • phpcn_u98807

    phpcn_u988072018-01-22 17:06:49

    1. It will be triggered every time the page is called;

    2.false, Text;

    3.true, Text2;

    The poster mentioned it a long time ago, I plan to learn php now

    reply
    2
  • Cancelreply