The reason why a page request in ASP. NET is repeatedly processed multiple times is recorded.

Source: Internet
Author: User

1. Use default. aspx without any entity.

Everything is normal and only once processed.

 

2. Use default. aspx and use permission tag

[Pixysoft. Framework. Security. entity. authenticationpage ("manager_level_00")]

Normal.

It indicates that the securitymodule is not a problem, and there is no problem with permissions.

 

3. The page inherits jsonpage <managerquerypossalesreceipthandler>

Everything is normal, not a JSON framework issue.

 

4. Added CSS/JS references.

<LINK rel = "stylesheet" type = "text/CSS" href = "CSS/ext-all.css"/>

<SCRIPT type = "text/JavaScript" src = "JS/ext-base.js"> </SCRIPT>

<SCRIPT type = "text/JavaScript" src = "JS/ext-all.js"> </SCRIPT>

<SCRIPT type = "text/JavaScript" src = "JS/ext-helper.js"> </SCRIPT>

<SCRIPT type = "text/JavaScript" src = "JS/pixysoft. pageflow. Ext. js"> </SCRIPT>

<SCRIPT src = "JS/console/manager/querypos/manager_querypos_possalesreceipt.js"

Type = "text/JavaScript"> </SCRIPT>

Everything works.

 

5. Added extjs Initialization

Everything works.

 

6. Added extjs events.

Multi-layer reference is displayed !!!!!

 

Problem: Ext. getcmp (page. manager_querypos_possalesreceept (). Render (ext. getbody ());

 

The request is called many times. This is a render issue.

 

7. The original ecology of extjs is used:

Http://xiaofen3115.javaeye.com/blog/209640

No problem. Render is normal and only accessed once.

<SCRIPT type = "text/JavaScript">

Ext. onready (function ()

{

VaR form = new Ext. Form. formpanel ({

Defaulttype: 'textfield ',

Labelalign: 'right ',

Title: 'form ',

Labelwidth: 50,

Frame: True,

Width: 220,

Items :[{

Fieldlabel: 'text'

}],

Buttons :[{

Text: 'click'

}]

});

Form. Render (ext. getbody ());

});

</SCRIPT>

 

 

8. There is no grid declaration, render.

There are four access records.

 

9. The grid statement appears, render

11 access records are displayed.

 

10. the reference of pageflow is deleted.

<SCRIPT type = "text/JavaScript" src = "JS/pixysoft. pageflow. Ext. js"> </SCRIPT>

11 access records are displayed.

 

11. Declare the initialization interface only once, render

Ext. onready (function ()

{

VaR Panel = exthelper. createformpanel (page. manager_querypos_possalesreceept (), 'sales query', 700, 80 );

Panel. Add (

Exthelper. createcolumnlayout (

Exthelper. createlayoutcombobox (0.8, page. combobox_shoplist (), 'store list', 425, 'shopcode', 'shopname '),

Exthelper. createhiddenfield (page. hidden_shopcode ())

));

});

There are two calls.

 

12. Only panel is declared

Ext. onready (function ()

{

VaR Panel = exthelper. createformpanel (page. manager_querypos_possalesreceept (), 'sales query', 700, 80 );

});

There is only one call.

 

13. Declared panel + hiddenfield

Only one call

 

14. var Panel = exthelper. createformpanel (page. manager_querypos_possalesreceept (), 'sales query', 700, 80 );

Panel. Add (

Exthelper. createcolumnlayout (

Exthelper. createlayoutempty (0.4 ),

Exthelper. createlayoutbutton (0.2, page. button_searchtoday (), 'sale by Day', 100 ),

Exthelper. createlayoutbutton (0.2, page. button_searchyesterday (), 'sale yesterday ', 100 ),

Exthelper. createlayoutbutton (0.2, page. button_searchweek (), 'sale this week', 100)

));

Appears once.

 

15. Panel. Add (

Exthelper. createcolumnlayout (

Exthelper. createlayoutdatefield (0.4, page. datetimepicker_datefrom (), 'start time', 150 ),

Exthelper. createlayoutdatefield (0.4, page. datetimepicker_dateto (), 'end time', 150 ),

Exthelper. createlayoutbutton (0.2, page. button_search (), 'query sales', 100)

));

Panel. Add (

Exthelper. createcolumnlayout (

Exthelper. createlayoutempty (0.4 ),

Exthelper. createlayoutbutton (0.2, page. button_searchtoday (), 'sale by Day', 100 ),

Exthelper. createlayoutbutton (0.2, page. button_searchyesterday (), 'sale yesterday ', 100 ),

Exthelper. createlayoutbutton (0.2, page. button_searchweek (), 'sale this week', 100)

));

Appears three times.

 

 

 

Createlayoutdatefield will generate a request.

 

If the triggerdatefield is inherited, two loads are generated.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.