Why not setting the atttribute client side? This disables the user from editing the value. Moreover, it supports post back. Cool. :)
// Make the textbox readonly at client side
txbDailyAllowance.Attributes.Add("readonly", "readonly");
Programming and windows tips and tricks.
No comments:
Post a Comment