I have a tree view control, a user control(having some standard information for each page with some events which are eventually raised in aspx page) and a submit button on a given aspx page.
Now whenever I click submit button, I need to read the tree and store the information in DB in a defined XML format and go back to previous page.
Heres the problem, whenever user clicks on submit button, it always gives checkbox.checked as false irrespective if it is checked or not and hence stores in DB that XML with information about all nodes unchecked and goes back to previous page.
Now when I come back again, and again check some nodes and submit, it does everything correct.
(WEIRD)
This treeview is used to document some information and user can come back again to view the previous documented information and can again redocument it.
BUT AT FIRST TIME, IT IS SHOWING ALL NODES ARE UNCHECKED EVEN THO I CHECK IT. so it is storing in Transaction DB as all nodes unchecked. NOW when user comes back again he pull tree info from transaction DB and makes a tree all unselected(as they were stored).
He documents again and now everything works fine here after.
ne pointers will be appreciated.