Hi,
I am developing a project for online exam. I am displaying questions from DB and binding to gridview randomly. So serial no for questions will not in ascending order. So i am using <%#Container.DataItemIndex+1 %> expression to display in order. Now in middle user wants to see what are all unanswered questions in that paper i am giving one "Review " button. So how can i show that unanswered questions from gridview. Some one pls help me.
Thanks in advance.
Regards,
Rajesh
Jiteendra SampathiraoPosted Aug 18, 2011, 5:12 AM
try this:
Jaganathan BantheswaranPosted Aug 18, 2011, 5:13 AM
Try like this.
Bind the serial num to grid but dont show it. Use Gridview item template with hidden input control or textbox with visibility fase. store the <%#Container.DataItemIndex+1 %> to that hidden control.
Now you can access the hidden control value and corresponding serial number. Do the remaining stuffs.