Complex Sorting and Paging ASP.Net and DWMX

When I started programming I would scour the internet for good examples of code, You usually end up writing most yourself. I began programming <html> in 1999 and used notepad until I found out about Dreamweaver and Visual Studio and then I went crazy making sites. This article will teach the advanced and Intermediate users the great WYSIWYG of the Dreamweaver environment and the power of MX and .Net with a little homemade code to make it all come together for Complex ASP.Net Datagrid ASC/DESC sorting and paging.


Step 3

Now we can create the DataGrid:

To create the data grid go to the Menu bar and click:

Insert>ASP.Net Objects>DataGrid

The DataGrid box will pop up:

Make the following changes:

  1. ID: dgEmployees
  2. DataSet: Select dsGrid (you just created this)
  3. Show: like below (this will show 3 records when paging. There is only 9 records in the database so we choose three to show how paging works)
  4. Navigation: select "Numbered Links to Every Page" (either selection will work here. It is just what you prefer)
  5. Click "OK"

The datagrid will show up on the page and look like this:

Charles Stratton

Charles StrattonI enjoy programming and someday plan on writing a book. I have been developing Enterprise web applications since 1999.

See All Postings From Charles Stratton >>

Comments

sorting

December 17, 2003 by Paul Anderson
Excellent article....this has helped me with designing a search results page for my companies website.

Great tutorial !

December 17, 2003 by Marcellino Bommezijn

Charles,

Finally there is someone that can present a ASP.NET tutorial which gives me the 'push' to actually get started with moving to ASP.NET.

Hope you have some more of these tutorials in 'the magic head' covering ASP.NET in DWMX.

Thanks

 

 

Thanks - VB .NET examples?

April 1, 2005 by Liam Cassidy
Great article - thank you! I don't use (or know) C#... anyone able to post the VB .NET alternatives?

VB Version

May 12, 2005 by Stephen Davidson

Great article...i was able to follow it and convert it to VB .Net, if anyone wants the code for this drop me a line.

Cheers,

Stephen

See all 9 Comments

You must me logged in to write a comment.