Home > Net >  Repeater binding how to set up multiple data delay
Repeater binding how to set up multiple data delay

Time:09-30

Repeater binding how to set up multiple data delay, delay under 5 seconds and then display a record, not a complete display?

CodePudding user response:

The timer insert data can,

CodePudding user response:

String strWhere1="select * from table";
The DataTable dt1=report_Bll. GetListByWhere1 (strWhere1);
Rpt_Stations_Curr. The DataSource=dt1;
Rpt_Stations_Curr. DataBind ();
This is binding, how to use a timer a insert?

CodePudding user response:

You came out, the binding is a one of two ways: 1. Time to take a data binding database, (2) a, give to the front-end JS to handle time hidden display,

CodePudding user response:

Define two datatable global variable
The first dt
Dt1=report_Bll. GetListByWhere1 (strWhere1);
The second dt2
In the timer for the first data to the second dt2, and then delete the first dt1 first line, and then
Rpt_Stations_Curr. The DataSource=dt2;
Rpt_Stations_Curr. DataBind ();

CodePudding user response:

This can only use JS, if the background with timer, will continue to refresh the page background is the most simple sleep cycle
  • Related