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. select from DataTable

select from DataTable

Scheduled Pinned Locked Moved ASP.NET
questionhelp
2 Posts 2 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.
  • B Offline
    B Offline
    beastyboy
    wrote on last edited by
    #1

    Hi all, I create a DataTable as follows: objUrlTable = New System.Data.DataTable("urlGrid") 'add column Url to urlGrid objUrlTable.Columns.Add("Url", GetType(String)) 'put datatable into Session Session("urlGrid") = objUrlTable Then I add a row dynamically objUrlRow = objUrlTable.NewRow objUrlRow("Url") = UploadFile() objUrlTable.Rows.Add(objUrlRow) 'add image-url 'put datatable in Session Session("urlGrid") = objUrlTable Suppose that after adding a few lines, I want to select the second "url" from the table and put it into a String. How can I do this? Hope anyone can help me out! Thank you already respect 2B respected

    K 1 Reply Last reply
    0
    • B beastyboy

      Hi all, I create a DataTable as follows: objUrlTable = New System.Data.DataTable("urlGrid") 'add column Url to urlGrid objUrlTable.Columns.Add("Url", GetType(String)) 'put datatable into Session Session("urlGrid") = objUrlTable Then I add a row dynamically objUrlRow = objUrlTable.NewRow objUrlRow("Url") = UploadFile() objUrlTable.Rows.Add(objUrlRow) 'add image-url 'put datatable in Session Session("urlGrid") = objUrlTable Suppose that after adding a few lines, I want to select the second "url" from the table and put it into a String. How can I do this? Hope anyone can help me out! Thank you already respect 2B respected

      K Offline
      K Offline
      Kodanda Pani
      wrote on last edited by
      #2

      Hi, Can you try using the following code. objUrlTable.rows[i].Item["Url"] = "sbd"; Thanks and Regards SGS

      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