470,814 Members | 805 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,814 developers. It's quick & easy.

DataList binding problem

Hi, I have this kind of problem,

In my asp.net page i use DataList and user control that is repeated in
This user control has in it a checkbox , so everytime user clicks on
checkbox it goes postback.
But i cretaed new public static event in my user control class and
binding to this event function in my Page (that has in it user control
) and everytime when checkbox checked i call event that itself calls
method in Page class. also there are Lables in my user control that get
their values at Page_Load and bindet to Table.
The problem is in following,
WHEN checkboxes' event called (that is in Page class) and i do my
modifications in my table that is binded to DataList (to see changes
after user has checked a checkbox) the changed values are not seen
after page returns to user, the value is still the old one, despite i
didnt forget to call myDataList.DataBind(), and this.DataBind().
But After Refresh (actually after the next postback) the real editied
values already binded to DataList and controls got them
successfully.... This happen because of after checkbox function is
finished in Page class, the Page_Load is not called once again , as it
is calling before Event click. why myDataList.DataBind() doesnt help
Please let me some Ideas if you guess my problem...

Dec 27 '06 #1
0 947

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mark | last post: by
5 posts views Thread by Ian O'Rourke | last post: by
2 posts views Thread by Shiju Poyilil | last post: by
1 post views Thread by Laura K | last post: by
3 posts views Thread by Mirek Endys | last post: by
4 posts views Thread by Peter | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.