tag. Because the file content is big and this require a lot of scrolling.
How to do pagination when displaying a file content on paragraph tag.
Hi can any body have idea that how we can perform pagination when we read from a long text file and showing on a
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Apr 16, 2009, 9:30 AM EDT
Hi Deepak,
I am sorry, i didn't fully understand your question. Could you please re-phrase it once again.
Thanks -- Vijaya Kadiyala
Deepak Goyal42 reputationPosted Apr 16, 2009, 11:26 PM EDT
I mean to say that. I am reading huge data stored in text file and on the click over a linkbutton (Runtime) I am showing it on a
tag or I can show it on a lable tag on a aspx page. Now if this data is very huge, the user need to scroll down a lot to see the full content. I want to do pagination over here.So my a script should read the data and decide how any links it has to generate and clicking on those links I should be able to see next content on the same area.
some thing like this.
Previous << 1 2 3 4 >> Next
I have searched but found only when we are using database(Mysql, Oracle) and showing in the table rows, not specific to my senario.
I think it can be done by Javascript but not getting the exact flow.
Thanks.
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Apr 17, 2009, 3:09 AM EDT
It can be done through javascript but in a different way. insteat of one level control,you should have 4(depends on you) level control. Devide the entire text in 4 level control and create separate for each level. Now initially visible one level control and hide all the other level controls. create 4 links as 1,2,3,4. Now say if he clicks on link 2. didplay the second level control and hide the remaining. Anyways initially you are making link 1 related level enable and all the other level disable,so next time whatever link he clicks, just enable it and disable the previously enabled link. I think it should work. For enableing and disabling the following javascript syntax can be used.
Know the answer? Forums 01
Arun PottiAnswers in the forums20answers02
Tahir AnsariAnswers in the forums5answers03
Kamlesh KumarAnswers in the forums5answers04
Sam HobbsAnswers in the forums4answers05
Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.Join Full leaderboard → 2026
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
document.getElementById("trExistingVendor").style.display = '';
document.getElementById("trExistingVendor").style.display = 'none';
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts