473,385 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Access to WebControl from client?

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

Nov 19 '05 #1
2 1192
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


Nov 19 '05 #2
Thanks Scott

You are possitive person!
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ed S | last post by:
(originally posted in microsoft.public.xsl but I think it really belongs here - NOT a cross post :) ) Hi All, I have had a great deal of success using the Xml WebControl in ASP.NET (C#) and...
2
by: Nadav | last post by:
Hi, I am new to WebControls, I have created a WebControl that is used to present an image, the image bing presented is created on runtime, each client side button click causes the image to...
1
by: Nadav | last post by:
Hi, I am new to WebControls, I have created a WebControl that is used to present an image, the image bing presented is created on runtime, each client side button click causes the image to...
1
by: Mesalem | last post by:
i'm creating a text box dynamically in the page load and on the client side i use the following script to hide the control document.getElementById('dynamicText').style.display='none';...
11
by: Henrry Pires | last post by:
Hello to all I'm trying to make a webcontrol. I need to put on it 4 butons and one label but i have no idia how to make it. I already wrote some windowsformrs controls and it is very diferent...
4
by: Cesar Ronchese | last post by:
Hello. I have a WebForm that contains a Panel object. This panel, at design time is empty. When running, I need to create dinamically a Label and a WebControl (built from the same project). I...
0
by: Demetri | last post by:
I have created a web control that can be rendered as either a linkbutton or a button. It is a ConfirmButton control that allows a developer to force a user to confirm if they intended to click it...
3
by: Bob | last post by:
Hi, I 'm starting asp.net and i saw two ways to make buttons. Which way to use? Are the htmlbuttons in specific case better than webbuttons? Are there advantages? Thanks Bob htmlbutton:...
2
by: Peregrin | last post by:
Hello world. I will try to explain my problem. I've a webcontrol with an interface which provides a choice of methods. After including the webcontrol in a special aspx page, I want to call an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.