| |

VerySource

 Forgot password?
 Register
Search
View: 885|Reply: 2

There are Inherits="xxxxxx" in the foreground code of each .aspx page. Is the foreground code and the background code

[Copy link]

7

Threads

16

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-11-30 23:00:01
| Show all posts |Read mode
In other words, the foreground is inherited from the background class. Is that correct?
Reply

Use magic Report

0

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-12-1 14:30:01
| Show all posts
No. The front desk is not a class. It can only be said to specify the class name associated with the front desk.

Personal understanding
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-12-1 19:45:01
| Show all posts
In code-behind mode, two classes are automatically generated
First:
       It is partial, which only contains the declaration code of the page control; the class name is consistent with the class name in the code-behind file, for example: MyPage;

Two places:
       The class name is similar to webform1_aspx, which is a subclass of MyPage in the first above. The main logic of the code is to generate a control tree.
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