update binding in server-side tag

D

davefromalbury

i've got a <tr> in an asp.net 2.0 formview which i set runat="server"
so that in the code, i can set visible=false for that row if the user
isn't admin. In this row, i have a drop-down with two-way binding. for
some reason, this control isn't getting picked up in an update, ie
e.oldvalues["id"]=null. Any idea why?

cheers
dave
 
E

Eliyahu Goldin

Note, that controls with Visible=false don't get sent to the client. Can it
be the reason in your case?

Eliyahu
 
D

davefromalbury

hmmm i don't think so, it's always visible, as during the update, it's
still the same user. it only loses visibilty for non-admin.

cheers
dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top