• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 431
  • Last Modified:

DataGrid Paging (javascript disabled on client)

Hi Experts

Most ecommerce sites have datagrids which don't rely on the client having Javascript enabled to render pages 1-10,11-20 etc.
e.g
http://www.amazon.com/exec/obidos/tg/new-for-you/top-sellers/-/dvd/all/ref=d_hp_sn_ts/102-8831740-9295333

Can you give me a code example please?

(I'm new to ASP.NET and was disappointed when I tried the drag and drop controls to find that some rely on client Javascript.)



0
chiii0ut
Asked:
chiii0ut
  • 3
  • 2
  • 2
  • +1
1 Solution
 
Hamed ZaghaghiProgrammerCommented:
you can use datagrid
0
 
Hamed ZaghaghiProgrammerCommented:
if you use vs2005 you should use gridview,
0
 
chiii0utAuthor Commented:
Erm
I'm using VS2005 gridview and onmouseover the pg no. it is calling:

javascript:__doPostBack('GridView',;Page2$')

which breaks if javascript is turned off.

Whereas onmouseover the page nos on the the amazon site you get a non-javascript page link:

http://www.amazon.com/exec/obidos/tg/new-for-you/top-sellers/-/dvd/all/dvd/0/1/2/ref=pd_ts_pg_2/102-8831740-9295333
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
SammyCommented:
I think the only control that would work if Javascript is disabled on the client is the buton control.
0
 
Hamed ZaghaghiProgrammerCommented:
almost all controls that has postback use java script,
you can use links that send querystrings to a page  for example like this

list.aspx
shows data from 1 to 10
list.aspx?s=10
shows data from 10 to 20

and so on....
0
 
DreamMasterCommented:
This should get you in the right direction..

http://www.uberasp.net/getarticle.aspx?id=29

Regards,
Max.
0
 
chiii0utAuthor Commented:
Thanks Max
I haven't had a chance to try it yet but it looks spot on

Paul
0
 
DreamMasterCommented:
Glad to have been helpfull Paul!

Regards,
Max.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now