Wednesday, March 21, 2012

Questions about bindings, tables, listviews...

I have a web service with a method, for example, GetCities, returns an array of cities. I want to bind it to a grid-like structure, the first column being the city name and the second a delete button. Then I want to implement the delete button that deletes the city and refreshes the list. All that within an .ascx control - I want to be able to place multiple of these on the same page.

I struggled with this with Atlas - it doesn't seem like a listview is the right way to go for this and I am not sure how to get the delete button to invoke some method to delete a row.

Anyone has a working example of something like this end-to-end?

Thx
dB.

A listview is appropriate for that. Check out this post (which uses server controls, but that'll give you the general idea).http://forums.asp.net/1123018/ShowPost.aspx

No comments:

Post a Comment