Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to navigate Next,Previous ,Last,First

How to navigate Next,Previous ,Last,First

Scheduled Pinned Locked Moved ASP.NET
helptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    govindi unal
    wrote on last edited by
    #1

    Can anybody help me i am developing an online examination system i want to display Questions one by one how i can use move next,move previous,move last,move first

    B G 2 Replies Last reply
    0
    • G govindi unal

      Can anybody help me i am developing an online examination system i want to display Questions one by one how i can use move next,move previous,move last,move first

      B Offline
      B Offline
      Baran M
      wrote on last edited by
      #2

      when you design the table, assign a unique number for each question (example: question no.). Say that, you are showing 15th question and the user wants to move to previous. Now you have to show the 14th question. You can do it easily. Use session if you need.

      1 Reply Last reply
      0
      • G govindi unal

        Can anybody help me i am developing an online examination system i want to display Questions one by one how i can use move next,move previous,move last,move first

        G Offline
        G Offline
        gottimukkala
        wrote on last edited by
        #3

        Hi When you select the rows from table sorted by some order let's say sorting by name you can ranking for selected rows and then get the rows where between 1 and 14 This sample query may help you: DECLARE @PageIndex int = 1, DECLARE @PageSize int = 14 SELECT * FROM ( -- selecting the rows sorted by name SELECT Row_NUMBER() OVER (ORDER BY Name DESC) AS Row, Q.* FROM Questions_Table Q ) AS questions WHERE Row BETWEEN CONVERT(nvarchar(10), ((@PageIndex - 1) * @PageSize + 1)) AND CONVERT(nvarchar(10),@PageIndex*@PageSize) Hope that helps

        -- http://ashakthi.blogspot.com http://kids-articles.blogspot.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups