I have a radgrid bound to a declarative datasource.
The grid uses automatic updates, inserts, and deletes
with a popup edit form based on a two-way databinding
form template. The code-behind subscribes to the
ItemUpdated,ItemDeleted, and ItemInserted events
to check for automatic operation exceptions and forward
those on to the user / master page gui.
After the user clicks the insert or update button, I want
to cross-check the entries from the edit form and pehaps
maniputate them. Such as if a user enters a value over
some server-calculated maximum it would then simply
set the value to the maximum and allow the update to
continue. I want to set the values of other fields that
the user cannot enter based on their entries. I do not
want to trap these client-side before the server is hit
using validators.
What syntax would I use in the server-side codebehind
to access the user entries? And in which server-side
events? And how would I then manipulate the values
such that my updates overrode those of the user before
the database update is performed?
Thanks, Scott
I
The grid uses automatic updates, inserts, and deletes
with a popup edit form based on a two-way databinding
form template. The code-behind subscribes to the
ItemUpdated,ItemDeleted, and ItemInserted events
to check for automatic operation exceptions and forward
those on to the user / master page gui.
After the user clicks the insert or update button, I want
to cross-check the entries from the edit form and pehaps
maniputate them. Such as if a user enters a value over
some server-calculated maximum it would then simply
set the value to the maximum and allow the update to
continue. I want to set the values of other fields that
the user cannot enter based on their entries. I do not
want to trap these client-side before the server is hit
using validators.
What syntax would I use in the server-side codebehind
to access the user entries? And in which server-side
events? And how would I then manipulate the values
such that my updates overrode those of the user before
the database update is performed?
Thanks, Scott
I