Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Frnds,
I am working on ASP .net Project which helps to take online test.I have added questions to database in byte format.When i fetching questions from database its taking more time.for particular subject 1000 questions is there.When i select subject and click show i am binding questions in gridview.I am given paging per page 10.But its taking more than 2 mins to bind.I am using Stored Procedures for fetching.Please tell me quick way to get questions.Questions contain images also.So memory is more.
Posted
Comments
M Rayhan 11-Oct-13 2:49am    
Did you use pagination in the stored procedure? or in the front end?
itsureshuk 11-Oct-13 3:30am    
in front end,Gridview only i used paging.not in Stored Procedure.How to use in gridview

 
Share this answer
 
Comments
itsureshuk 11-Oct-13 5:03am    
select QC.QuestionId,QM.Question
from QuestionsForChapters QC,QuestionsMaster QM
where QM.QuestionMasterId=QC.QuestionMasterId and QC.ChapterId=@ChapterId

It gets 1000 records
If you did not use pagination in stored procedure then use pagination in the sp

See here Custom Pagination[^]

Custom SEO friendly pagination[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900