Hi MilanB:
Never trust input from the network! The client might not be a browser,
but some script or program that tries to POST new values for controls
back to the server.
I'm not sure how ASP.NET would handle a post back value for a disabled
control, but even if it does ignore the value I'm not sure I'd rely on
the behavior. Why not use a nice looking Label control instead?
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Fri, 8 Jul 2005 03:15:02 -0700, MilanB
<Mi****@discussions.microsoft.com> wrote:
Hello
I use DropDownList (webControl) for choosing user account type for my site.
I set desired value, and disable control, in order to disable user to modify
it.
Is there any possibility to user can modify this control from client site
and and return new value to server/ (example selected value)
As I understoond WebControl could not be accessed from client side.
So is my code safe from modify on client side or not.
Thanks
MilanB