Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Navigation in ASP.NET
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00746037
Message ID:
00746066
Views:
15
This message has been marked as the solution to the initial question of the thread.
Hi Nadya,

There are two approaches you can take to accomplish the next and previous navigation control. The first way is to create your DataSet and store it in a Session variable. You would also create a Session variable to store the current counter for which row you are on in the DataTable in the DataSet. The Next button would increase the counter variable. The Previous button would decrease the value of the counter variable. In the load of your page you would retrieve the Session variables and then locate the current DataRow using the counter variable.

The second approach is very different from the first. You can use a DataGrid object to display your data using template columns. You can create the navigation buttons for the DataGrid. The DataGrid already has built in the ability to move next and previous. Here is an article that was published in MSDN magazine that details out how to implement this approach:

http://www.dotnet247.com/247reference/a.aspx?u=http://msdn.microsoft.com/msdnmag/issues/02/04/cutting/cutting0204.asp


>Hi everybody,
>
>My friend & I are stumbled on the very simple problem. We have tables on SQL server. We added several textboxes and we're able to show the first record information on the form. We added Next button (BTW, how can we set a picture for the button - or should we use another control?), but we don't know, how to make this button work. We could not find a sample (may be we didn't look hard enough).
>
>Could you please provide some help?
>
>Thanks a lot in advance.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform