1, show that [article] list: the title, date, content
2, display/reader list: name
Such a demand, what is the solution?
Each experience great god advice please
CodePudding user response:
Now you want to come out two ideasA, paging, page 1 read [article] table, and transmit the data to the page 2, page 2 read [readers] table record sets,
- due to other logical judgment related to the page, the feeling is very troublesome, and transmit data in a "content", have HTML code, the length have a little trouble or transcoding,
Two, union all way, will [article] table and [readers] table records set union rises, do a "source" field, more source="article", according to the article style, source="reader", shows the reader style,
- it is not very good, the specific bad to where I can 't say,
Please advice ~
CodePudding user response:
A page or two side by side in the list are like the datagrid control can, get the ID of the article, from the first control to associated with the article ID reader ID, to display the reader in the second control,CodePudding user response: