468,469 Members | 1,745 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,469 developers. It's quick & easy.

DataGrid Control: Paging Using URI Params?

Hi,

I'm using a DataGrid control to show a table's content with paging. For
navigation through the pages I'm using the DataGrid's intrinsic navigation
section.

My problem: The DataGrid navigation links use JavaScript to jump between
pages. I want them to use standard hyperlinks providing the page number in
some URL parameter so that I can copy the hyperlink elsewhere.

Can someone please enlighten me on if this is possible without writing my
own paging mechanism?

TIA,
Axel Dahmen
Nov 19 '05 #1
2 1672
Hi Axel,

I don’t think the thing is so simple. At least datagrid pagination is not so
called simply using JavaScript jump. It requires having pagechanged event and
event trigger to handle paging. It also needs code to implement paging. In
most case, it requires datagrid’s viewstate enabled, that means necessary
data need to post to server. Apparently in addition what I mentioned above
..NET also does many underneath works. So it’s impossible to perfor paging
simply using hyperlink with query string (GET method will lose all state of
client-side showed datagrid).

HTH

Elton Wang
el********@hotmail.com

"Axel Dahmen" wrote:
Hi,

I'm using a DataGrid control to show a table's content with paging. For
navigation through the pages I'm using the DataGrid's intrinsic navigation
section.

My problem: The DataGrid navigation links use JavaScript to jump between
pages. I want them to use standard hyperlinks providing the page number in
some URL parameter so that I can copy the hyperlink elsewhere.

Can someone please enlighten me on if this is possible without writing my
own paging mechanism?

TIA,
Axel Dahmen

Nov 19 '05 #2
Ah, I see, you're right... I forgot about ViewState... Thanks !
---------------
"Elton W" <El****@discussions.microsoft.com> schrieb im Newsbeitrag
news:28**********************************@microsof t.com...
Hi Axel,

I don't think the thing is so simple. At least datagrid pagination is not so called simply using JavaScript jump. It requires having pagechanged event and event trigger to handle paging. It also needs code to implement paging. In
most case, it requires datagrid's viewstate enabled, that means necessary
data need to post to server. Apparently in addition what I mentioned above
.NET also does many underneath works. So it's impossible to perfor paging
simply using hyperlink with query string (GET method will lose all state of client-side showed datagrid).

HTH

Elton Wang
el********@hotmail.com

"Axel Dahmen" wrote:
Hi,

I'm using a DataGrid control to show a table's content with paging. For
navigation through the pages I'm using the DataGrid's intrinsic navigation section.

My problem: The DataGrid navigation links use JavaScript to jump between
pages. I want them to use standard hyperlinks providing the page number in some URL parameter so that I can copy the hyperlink elsewhere.

Can someone please enlighten me on if this is possible without writing my own paging mechanism?

TIA,
Axel Dahmen

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Joseph D. DeJohn | last post: by
1 post views Thread by Jeremy | last post: by
2 posts views Thread by Josh | last post: by
2 posts views Thread by Dave | last post: by
2 posts views Thread by Daniel Walzenbach | last post: by
3 posts views Thread by Fao, Sean | last post: by
6 posts views Thread by SatishPasala | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.