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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Grid-View Ajax style

Grid-View Ajax style

Scheduled Pinned Locked Moved ASP.NET
databasecsscsharpjavajavascript
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.
  • H Offline
    H Offline
    hrishi321
    wrote on last edited by
    #1

    Hello All, I am very confused to choose among many ways to do a task efficiently. Please suggest me the best way to do the following.. All I want is to "search a sql-database and show up the result in a grid". Note that each row would have an image, a link and some text. My main check points are 1) Ajax-style grid: On pressing next-page, only the grid should be updated not the whole page 2) Client side pagination: Since the search result might be huge, on each time pressing the next-page, I want to get only the specified rows from the server. NOT THE WHOLE SEARCH RESULT- WHICH WOULD SLO DOWN MY INITIAL GRID SHOWING ..... Solution Options::: I am new to web-programming. While browsing through I got the following points...But i am not able to put them all together and somehow i am not confident about it..very much confused what to use and what not to... please help!!! 1) asp.net ajax toolkit 2) use a simple way to create a table with many rows in client side using java script, and get the data form server using AJAX writing the all code of myself. But in this case i need to have a way of pagination if myself 3) etc (may be many other solutions exist) Practically, there may be many pros and cons which I am unaware of. I am looking for something efficient and easy to use. May be less code. technology: vs2008/2010, Ajax/Jquerry/JS, sql-db... since havent started teh project I am open to any technology which gives the best solution. thanks in advance :)

    S 1 Reply Last reply
    0
    • H hrishi321

      Hello All, I am very confused to choose among many ways to do a task efficiently. Please suggest me the best way to do the following.. All I want is to "search a sql-database and show up the result in a grid". Note that each row would have an image, a link and some text. My main check points are 1) Ajax-style grid: On pressing next-page, only the grid should be updated not the whole page 2) Client side pagination: Since the search result might be huge, on each time pressing the next-page, I want to get only the specified rows from the server. NOT THE WHOLE SEARCH RESULT- WHICH WOULD SLO DOWN MY INITIAL GRID SHOWING ..... Solution Options::: I am new to web-programming. While browsing through I got the following points...But i am not able to put them all together and somehow i am not confident about it..very much confused what to use and what not to... please help!!! 1) asp.net ajax toolkit 2) use a simple way to create a table with many rows in client side using java script, and get the data form server using AJAX writing the all code of myself. But in this case i need to have a way of pagination if myself 3) etc (may be many other solutions exist) Practically, there may be many pros and cons which I am unaware of. I am looking for something efficient and easy to use. May be less code. technology: vs2008/2010, Ajax/Jquerry/JS, sql-db... since havent started teh project I am open to any technology which gives the best solution. thanks in advance :)

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      hrishi321 wrote:

      I am looking for something efficient and easy to use. May be less code.

      Based on the following parameters, my suggestions would be: 1. Use a DataGrid and not a simple table to avoid extra code 2. Implement server side pagination such that each page is fetched on-demand 3. Use client side techniques to update the grid - jQuery AJAX, ASP.NET AJAX, Callback, WebMethods, etc. One mistake in your question: "Client-side pagination" => that means whole data in one go and on page change no data fetched from server. That would not be needed.

      Sandeep Mewara [My last tip/trick]: Server side Delimiters in ASP.NET[^]

      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