![]() |
| calling a page from database !!! |
|
mammad_k
|
Hi,
I am making an ebook with ASP.Net + VB. I have created a datagrid to view the pages of the book. It works fine. I also have a Numeric pager on topAndbottom wich shows up to 10 page numbers. I’d like to have a menu working as table of content with just the chapter number on the side of the page. The question is, how can I connect the links in my side menu to a specific page number for example the beginning of chapter 2 on page 20 and in the same time I want my pagers to work as before wich was showing 10 page numbers that I can choose including the page I am in right now. I am using MS Access database and Dreamweaver MX 2004. Thank you very much in advance. Mammad_k. |
||||||||||||
|
|
|||||||||||||
|
bobum
Elvis Fanatic
![]()
|
First off - this is such a specific question for YOUR applicaiton that it's going to be really hard for anyone to give you any kind of idea what direction to take without seeing how you have engineered it up to this point.
Secondly - if my assumption of your problem is correct, you are going to have to parse the entire ebook, calculate what page the chapters begin on, store that information somewhere and then run through that data when you are creating your table of contents. That's how you could do it dynamically, but that would be a huge CPU cycle hog I imagine. Having to pares each book on each request would be a horrendous drain on resources. An alternative would be to have stored in your database, a prefab table of contents for each ebook. What you could do than would be, each time you ADD a book, parse it completetly, find out on what page the chapters start on, store that data in addition to the text of the book and then on diaplsy you'd have your TOC ready to go on the sidebar. Least that should give you something to think about. |
||||||||||||
|
|
|||||||||||||
| calling a page _ 100% table height !!! |
|
mammad_k
|
Dear bobum,
Thanks for your post, you are right it was a bit too specific. As you said I have the page numbers, page titles (i.e. table of content, credits, etc.) and the chapters, separately specified in my database. All I needed to do was calling a page number, starting the chapter or all the pages in one chapter from the database. I know it is possible with making a query instead of working only with data tables. But the problem with query is when I for example call all the pages in a chapter it starts from the first page in the chapter like page 20 of chapter 2 and it is impossible for the user to just click on the previous link on the pager and go to page 19 of chapter 1 because the query is showing only the pages in chapter 2 NOT any other chapters. And also the numeric pager starts from 1 which is not the real page number ( which is 20). I thought may be I should forget about the numeric pager and go only with nextPrevious pager and make one query for each chapter. (what do you think?) And now I just came up with another silly problem which is really giving me a hard time searching all over the net and it is how to set a table height to 100% in xhtml.1 Transitional (probably using CSS) ??? |
||||||||||||
|
|
|||||||||||||
| calling a page from database !!! |
|
||
|



