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
Solved

DataGrid Paging (javascript disabled on client)

Posted on 2006-06-29
8
415 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
  • 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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