Access to WebControl from client?

G

Guest

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
 
S

Scott Allen

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?
 

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

Top