• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 436
  • 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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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