1

What's the best way to get the contents of objects into tables in ASP.NET?

I've created an OnButtonClick event on a page, which then goes and fetches an object with a bunch of variables and one list, how can I get those variables and list to most easily render in a (initially hidden) table?

Should I use this guide? Table Class or is there some other way to do it?

3
  • Why not use GridView
    – Habib
    Apr 15, 2013 at 6:10
  • I've seen this too, though I don't know how to get my object which has been created OnButtonClick into the gridview. I can choose source, Object, but can't see the object there. Is there a guide? Do you mean that I should use the "ObjectDataSource", so this would then mean that I've got to change the backend to give me what I need in the front?
    – edumike
    Apr 15, 2013 at 6:18

1 Answer 1

0

Just FYI I ended up using the table class, I made a table maker class that I can throw my objects and entities at and it spits out nicely formatted tables, it was finicky but I felt a better solution than drag and drop programming.

Thanks all!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.