Asp. Net How do other pages call pages written by Web user controls
- 2020-12-21 18:01:09
- OfStack
Add the following code when the page that you want to add paging is loaded :(take the book category as an example)
Paging p = Paging1; //Web User control ID
p.DataControl = gvBookType; // The control to bind data to (here is GridView )
p.TableName = "BookShop_BookType";
p.Sort = "asc";
p.Column = "BookType_ID";