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. General Programming
  3. C#
  4. how to ?

how to ?

Scheduled Pinned Locked Moved C#
csharpdatabasequestionasp-netsql-server
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.
  • S Offline
    S Offline
    SSN
    wrote on last edited by
    #1

    as in VB 6.0 we have recordset.movelast what is it in asp.net using C# where database is sql server 2005?

    D A 2 Replies Last reply
    0
    • S SSN

      as in VB 6.0 we have recordset.movelast what is it in asp.net using C# where database is sql server 2005?

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      There is no equivilent in ADO.NET, it works in an entirely different way. Your best bet is to Google ADO.NET and read up on datareaders and datasets. Hope this helps

      Bob Ashfield Consultants Ltd

      1 Reply Last reply
      0
      • S SSN

        as in VB 6.0 we have recordset.movelast what is it in asp.net using C# where database is sql server 2005?

        D Offline
        D Offline
        dealon
        wrote on last edited by
        #3

        The SqlDataReader has no such method, please take a look at this below: SqlDataAdapter s = new SqlDataAdapter("...sql...", Conn); DataTable dt = new DataTable(); ; s.Fill(dt); DataRow dr = dt.Rows[dt.Rows.Count - 1]; Hope it's usefull for you!

        Regards, Dealon Impossible is nothing!

        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