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. DataGrid, DataList

DataGrid, DataList

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesysadminhelp
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.
  • N Offline
    N Offline
    ndkit
    wrote on last edited by
    #1

    I use AJAX in ASP.NET, in the client side code, I create a XmlHttpRequest to get data from Server(database). But when server response, how to get data from responseText or responseXML to fill in DataList or DataGrid(because DataList or DataGrid is control that run at server). Thanks! I sent this message in the last week, but noone answer, please help me.

    J 1 Reply Last reply
    0
    • N ndkit

      I use AJAX in ASP.NET, in the client side code, I create a XmlHttpRequest to get data from Server(database). But when server response, how to get data from responseText or responseXML to fill in DataList or DataGrid(because DataList or DataGrid is control that run at server). Thanks! I sent this message in the last week, but noone answer, please help me.

      J Offline
      J Offline
      jitendra gupta
      wrote on last edited by
      #2

      hi, i am sending u java script code which bind data into listbox through. var obj function PopulateList() { My.Page.ShowList(DoSetCallBack); } function DoSetCallBack(result) { if(document.Form1.ListBox1.options.length > 0) { document.Form1.ListBox1.options.length = 0; } var table = result.value.Tables.Table; var listbox = document.getElementById("ListBox1"); if(table != null ) { for (var i = 0; i < table.Rows.length; ++i) { var option = document.createElemet("option"); option.text = table.Rows[i].orderid; option.value = option.text; option.selected = false; listbox.add(option); } } }

      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