473,721 Members | 2,235 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1862
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********@hotm ail.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****@discuss ions.microsoft. com> schrieb im Newsbeitrag
news:28******** *************** ***********@mic rosoft.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********@hotm ail.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3571
by: RelaxoRy | last post by:
sqlConnection1.Open(); myReader = sqlCommand1.ExecuteReader(); DataGrid1.DataSource = myReader; DataGrid1.DataBind(); myReader.Close(); sqlConnection1.Close(); The Datagrid populates fine. I'm styling it on the HTML page. I configure the DataGrid for paging through the property builder fine. I AllowCustomePaging=true;. The page loads fine but it only shows "1"
3
8688
by: Joseph D. DeJohn | last post by:
I am trying to get pagination working on a datagrid. Can anyone point me to a resource for help on this? I'm not sure if custom paging is the best option or not.
1
2349
by: Jeremy | last post by:
I want my gird to sort only the items on the current page when I click on a column header. I wrote a little test app, but when I sort it pulls in items from other pages and places them on the current page. i.e. If I have: IntegerValue StringValue CurrencyValue 0 Item 0 0 1 Item 1 1.23
2
3166
by: Josh | last post by:
Hi Guys, I have been stuck on this problem for several days now, i have a set of nested datagrids. Inside the second datagrid i have a dropdown list, a textbox and a label. I want the textbox to update the label with the value of the dropdown list * the text box quantity. I am using an onTextChaged even on the textbox, the problem i have is that i can not find the lblPrice control. Thanks for the help,
2
1647
by: Dave | last post by:
Hi, When binding a dataset to a DataGrid and paging 10 records at a time, is the entire dataset still encoded and sent to viewstate as well OR just the current page and what's visible to the user stored in the viewstate on the browser? I've added some excerpts from some articles so I'm not sure. Any other MS links verifying this would be great.
2
1753
by: Daniel Walzenbach | last post by:
Hi, I have a question regarding the DataGrid control. If paging is enabled the grid binds the data, sets the paging on the top/bottom (or however it is set up) and throws away unnecessary data. So far so good for a tiny amount of data but if some 100000 of rows are the source this approach is stupid.
3
3150
by: Fao, Sean | last post by:
I have a DataGrid that I'm adding CheckBox controls to at runtime (in the code behind) and I'm not sure if I'm doing it correctly. First of all, I noticed that the MyDataGrid.Columns.Add() method expects a DataGridColumn so I instantiated an object of type TemplateColumn that I had hoped I could add a CheckBox to. I soon discovered that the ItemTemplate property of the TemplateColumn class returned an object that had implemented the...
6
1846
by: SatishPasala | last post by:
Hi I tried all the things I know am out of ideas now. Can you guys help me out with this? I have 4 grids on a page with I load on the Page_Load event. One of the grids has paging. When I move to different page on one of the grids, all the other Grids loose data on on postback. I am binding all the grids on the Page_Load event of the page the
0
1657
by: webaccess | last post by:
Hi Friends ..!! I want to use datagrid/dataview control to data in tablular format,also I want to add paging and format the data of table column. Problem is data is coming from API Dom in as XML source. Now to display data i hv use dataset to fetch data.so i m displaying data in datagrid/dataview. Now here comes a problem: Using Datagrid :
0
8730
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8007
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4484
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3189
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2130
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.