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 bind grid view through java script?

how to bind grid view through java script?

Scheduled Pinned Locked Moved ASP.NET
helpjavacsstoolstutorial
4 Posts 4 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
    samrat net
    wrote on last edited by
    #1

    Hello friend! I've faced a problem. I want to bind a grid view through java script. Actually, I've web service that returns a data set. I've called the web service from java script. But I cann't bind the returned dataset to grid view. Is there any way to bind dataset with grid view through java script? Pls help me. Thanks!

    N A A 3 Replies Last reply
    0
    • S samrat net

      Hello friend! I've faced a problem. I want to bind a grid view through java script. Actually, I've web service that returns a data set. I've called the web service from java script. But I cann't bind the returned dataset to grid view. Is there any way to bind dataset with grid view through java script? Pls help me. Thanks!

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      samrat.net wrote:

      I want to bind a grid view through java script.

      Gridview control exists on the server and will be rendered as normal HTML table. So you can't bind a gridview using JS. You can iterate through the data you are getting from webservice and add rows to the table using java script.

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

      1 Reply Last reply
      0
      • S samrat net

        Hello friend! I've faced a problem. I want to bind a grid view through java script. Actually, I've web service that returns a data set. I've called the web service from java script. But I cann't bind the returned dataset to grid view. Is there any way to bind dataset with grid view through java script? Pls help me. Thanks!

        A Offline
        A Offline
        Amit Agarrwal
        wrote on last edited by
        #3

        I'm not much sure but Have you tried Ajax for your problem?

        Amit Agarwal

        1 Reply Last reply
        0
        • S samrat net

          Hello friend! I've faced a problem. I want to bind a grid view through java script. Actually, I've web service that returns a data set. I've called the web service from java script. But I cann't bind the returned dataset to grid view. Is there any way to bind dataset with grid view through java script? Pls help me. Thanks!

          A Offline
          A Offline
          Ashish Sehajpal
          wrote on last edited by
          #4

          BIND : - it means the control is getting parsed/filled by server. with javascript, u are able to change the innerHTML of any control only. that means, you need to call any page asynchronously on which gridview is being BIND and get the HTML of that page ), put that HTML into some control, may be DIV, on your current page. This technique is used where no particular AJAX platform is used (OPEN). refer http://www.w3schools.com/Ajax/ajax_browsers.asp[^] for more knowledge on this.

          Ashish Sehajpal

          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