| |

VerySource

 Forgot password?
 Register
Search
View: 704|Reply: 3

Please explain the following page initialization mechanism

[Copy link]

7

Threads

16

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 Peru

Post time: 2020-1-7 20:40:01
| Show all posts |Read mode
There are two pages, a.aspx and b.aspx. There is an Image control on the page (ID value: b). In the background Page_Load () delegate event code of a page, there is such a sentence: b.ImageUrl = "xyz.jpg";
I do not know why after each execution of this statement, it will automatically go to the Page_Load () event code of page b. Please master to explain, thank you!
Reply

Use magic Report

7

Threads

16

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

 Author| Post time: 2020-1-8 11:00:01
| Show all posts
By the way, there is no asp control in the foreground of page b, only the background code.
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-9 09:45:02
| Show all posts
Add this.b.ImageUrl should be fine
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-29 19:09:01
| Show all posts
Learn
Why is B interpreted as b.aspx?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list