By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,083 Members | 1,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,083 IT Pros & Developers. It's quick & easy.

DataGrid Control: Paging Using URI Params?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.