Sorting a Datalist in ASP.net 2.0

L

LisaBigJax

I'm using VWD2.0 and VB.net

I'm working with a Datalist (which doesn't have built-in sorting like
the Gridview) and I would like to sort the datalist via dropdown list.


In the SelectedIndexChanged event I placed:

Dim dsa As New DataSourceSelectArguments
dsa.SortExpression = dropdownlist.selectedvalue (which is
"ClientName")
SqlDataSource1.Select(dsa)
DataList1.DataBind()

This does not work. There are plenty of examples on the web which
illustrate sorting on a datalist using asp.net 1.0 but not 2.0.

Can someone steer me in the right direction?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,824
Latest member
Nater888

Latest Threads

Top