Solved

DataGrid Paging (javascript disabled on client)

Posted on 2006-06-29
8
425 Views
Last Modified: 2012-05-05
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
Comment
Question by:chiii0ut
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 9

Expert Comment

by:zaghaghi
ID: 17013104
you can use datagrid
0
 
LVL 9

Expert Comment

by:zaghaghi
ID: 17013121
if you use vs2005 you should use gridview,
0
 
LVL 3

Author Comment

by:chiii0ut
ID: 17013555
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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 27

Expert Comment

by:Sammy
ID: 17015279
I think the only control that would work if Javascript is disabled on the client is the buton control.
0
 
LVL 9

Expert Comment

by:zaghaghi
ID: 17015704
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
 
LVL 19

Accepted Solution

by:
DreamMaster earned 500 total points
ID: 17016042
This should get you in the right direction..

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

Regards,
Max.
0
 
LVL 3

Author Comment

by:chiii0ut
ID: 17019997
Thanks Max
I haven't had a chance to try it yet but it looks spot on

Paul
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 17022753
Glad to have been helpfull Paul!

Regards,
Max.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question