How to specified datalist's style in vb.net?
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I want to specified my datalist's style on run-time by program,not on design by html.Such as,the style may be title+author or column+title,because i want to change the style by my option ,so i have to bind data when run-time. Following is my code,i just want to test it, but it doesn't work,even doesn't display article list. dim ams as new AMSystem() myList.DataSource=convertdatareadertodataset(ams.GetArticles(params)) myList.DataKeyField = "ID" myList.DataMember = "Title" myList.DataBind() Would you do me a favor? Looking forward to your reply.;)