Sorting a Datalist in ASP.net 2.0

L

LisaBigJax

Im using VWD2.0 / VB.net

I can't use the GridView control for this project and am using a
datalist so the automatic sorting provided by that control is not an
option. I have a dropdown box which has the sort criteria with an
autopostback.

Assuming the sort critieria is "Name", I've tried this in the
SelectedIndexChanged event with no luck.

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

Can someone steer me in the right direction? (using vb.net and visual
web dev)

Thx
~ Leeza
 

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

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top