Académique Documents
Professionnel Documents
Culture Documents
Informtica
TEMA:
CONTROL DROPDOWNLIST
INGENIERIA INFORMATICA
CICLO:
VI
ALUMNO:
DOCENTE:
HUACHO-PER
2015
INDICE
DROPDOWNLIST............................................................................................. 4
PROPIEDADES........................................................................................... 4
METODOS.................................................................................................. 9
EJEMPLO.................................................................................................. 14
EJEMPLO 1-FERIA DE AUTOS:.................................................................14
EJEMPLO 2-TELEFONIA:.........................................................................14
EJEMPLO 3-CALCULADORA.....................................................................15
EJEMPLO 4-AGENDA:............................................................................... 15
EJEMPLO 5-SISTEMA DE PAGO UNJFSC:..................................................16
EJEMPLO 6-ACCESORIOS DE COMPUTACION:..........................................16
EJEMPLO 7:............................................................................................. 17
EJEMPLO 8-CONVERITDOR MAYUSCULA-MINUSCULA:............................17
EJEMPLO 9-CAMBIO COLOR DROPDOWNLIST:.........................................18
EJEMPLO 10-CAMBIO DE COLOR DE LA LETRA EN EL DROPDOWNLIST:. .18
EJEMPLO 11-CARGAR DATOS AL DROPDOWNLIST:.................................19
EJEMPLO 12-LISTA:................................................................................. 19
EJEMPLO 13-LISTA DE DOCENTES:..........................................................20
EJEMPLO 14-TRIANGULO:........................................................................20
EJEMPLO 15-CAMBIO DE COLOR DE BORDEE EN EL DROPDOWNLIST:....21
EJEMPLO 16-DROPDOWNLIST, HABILITAR, DESABILITAR:.......................21
EJEMPLO 17-TOTAL ITEMS:......................................................................21
EJEMPLO 18-OCULTAR UN DROPDOWNLIST:...........................................21
EJEMPLO 19- CAMBIAR ANCHO DEL DROPDOWNLIST:............................22
EJEMPLO 20- ELIMINAR LOS ITEMS DEL DROPDOWNLIST:......................22
EJEMPLO 21-CAMBIAR FUENTE DE DATOS EN EL DROPDOWNLIST:........22
EJEMPLO 22-CARGAR DATOS AL DROPDOWNLIST CUANDO SE CARGA LA
PAGINA:.................................................................................................. 22
EJEMPLO 23- CAMBIAR BORDE AL DROPDOWNLIST:...............................23
EJEMPLO 24-UTILIZAR EL AUTOPOSTBACK EN EL DROPDOWNLIST:.......23
EJEMPLO 25-CAMBIAR FUENTE DE LA LETRA EN EL DROPDOWNLIST:....23
EJEMPLO 26-CAMBIAR ALTO DEL DROPDOWNLIST:.................................24
EJEMPLO 27- ELIJA UN PAIS.....................................................................24
:.................................................................................................................... 24
EJEMPLO 28 - ESCOJA UNA PAGINA:.......................................................25
EJEMPLO 29- OCULTAR EL DROPDOWNLIST AL DARLE CLICK:................25
2
DROPDOWNLIST
El control DropDownList de servidor Web permite a los usuarios seleccionar
uno o varios elementos de una lista predefinida. Se diferencia del
control ListBox de servidor Web en que la lista de elementos permanece oculta
hasta que los usuarios hacen clic en el botn desplegable. Adems, el
control DropDownList difiere del control ListBox en que no admite el modo de
seleccin mltiple.
PROPIEDADES
Nombre
AccessKey
Adapter
AppendDataBoundItems
AppRelativeTemplateSource
Directory
Attributes
AutoPostBack
BackColor
BindingContainer
BorderColor
BorderStyle
BorderWidth
CausesValidation
ChildControlsCreated
Descripcin
Obtiene o establece la clave de acceso que
permite navegar rpidamente al control de
servidor web. (Se hereda deWebControl).
Obtiene el adaptador especfico del explorador
para el control. (Se hereda de Control).
Obtiene o establece un valor que indica si los
elementos de la lista se borran antes del
enlace de datos. (Se hereda de ListControl).
Obtiene o establece el directorio virtual
relativo a la aplicacin del objeto Page o el
objeto UserControl que contiene este
control. (Se hereda de Control).
Obtiene la coleccin de atributos arbitrarios
(slo para su representacin) que no
corresponden a propiedades del control. (Se
hereda de WebControl).
Obtiene o establece un valor que indica si se
producir un postback automtico al servidor
cuando el usuario cambie la seleccin de la
lista. (Se hereda de ListControl).
Obtiene o establece el color de fondo del
control de servidor web. (Se hereda
de WebControl).
Infraestructura. Obtiene el control que
contiene el enlace de datos de este
control. (Se hereda de Control).
Obtiene o establece el color del borde del
control. (Invalida a WebControl.BorderColor).
Obtiene o establece el estilo de borde del
control. (Invalida a WebControl.BorderStyle).
Obtiene o establece el ancho del borde del
control. (Invalida a WebControl.BorderWidth).
Obtiene o establece un valor que indica si se
realiza la validacin cuando se hace clic en un
control derivado de la clase ListControl. (Se
hereda de ListControl).
Obtiene un valor que indica si se han creado
ClientID
ClientIDMode
ClientIDSeparator
Context
Controls
ControlStyle
ControlStyleCreated
CssClass
DataItemContainer
DataKeysContainer
DataMember
DataSource
DataSourceID
DataSourceObject
DataTextField
DataTextFormatString
DataValueField
DesignMode
Enabled
EnableTheming
EnableViewState
Events
Font
ForeColor
HasAttributes
HasChildViewState
Height
ID
IdSeparator
Initialized
IsBoundUsingDataSourceID
IsChildControlStateCleared
IsDataBindingAutomatic
IsEnabled
IsTrackingViewState
IsUsingModelBinders
IsViewStateEnabled
Items
ItemType
LoadViewStateByID
NamingContainer
Page
Parent
RenderingCompatibility
RequiresDataBinding
SelectArguments
SelectedIndex
SelectedItem
SelectedValue
SelectMethod
Site
SkinID
Style
SupportsDisabledAttribute
TabIndex
TagKey
TagName
TemplateControl
de Control).
Obtiene o establece un valor que indica si se
debe llamar al mtodo DataBind. (Se hereda
deBaseDataBoundControl).
Obtiene un
objeto DataSourceSelectArguments que utiliza
el control enlazado a datos al recuperar los
datos de un control de origen de datos. (Se
hereda de DataBoundControl).
Obtiene o establece el ndice del elemento
seleccionado del
control DropDownList. (Invalida
aListControl.SelectedIndex).
Obtiene el elemento seleccionado con el ndice
inferior en el control de lista. (Se hereda
de ListControl).
Obtiene el valor del elemento seleccionado en
el control de lista o selecciona el elemento en
el control de lista que contiene el valor
especificado. (Se hereda de ListControl).
Nombre del mtodo al que se va a llamar para
leer datos. (Se hereda de DataBoundControl).
Obtiene informacin sobre el contenedor en
que se encuentra el control actual cuando se
representa en una superficie de diseo. (Se
hereda de Control).
Obtiene o establece la mscara que se va a
aplicar al control. (Se hereda de WebControl).
Obtiene una coleccin de atributos de texto
que se representan como atributo de estilo en
la etiqueta externa del control de servidor
web. (Se hereda de WebControl).
Obtiene un valor que indica si el control debe
establecer en "disabled" el
atributo disabled del elemento HTML
presentado cuando el valor de la
propiedad IsEnabled del control
es false. (Invalida
aBaseDataBoundControl.SupportsDisabledAttri
bute).
Obtiene o establece el ndice de tabulacin del
control de servidor web. (Se hereda
de WebControl).
Obtiene el valor de HtmlTextWriterTag para el
control ListControl. (Se hereda de ListControl).
Obtiene el nombre de la etiqueta del
control. Esta propiedad la usan principalmente
los programadores de controles. (Se hereda
de WebControl).
Obtiene o establece una referencia a la
plantilla que contiene este control. (Se hereda
de Control).
TemplateSourceDirectory
Text
ToolTip
UniqueID
ValidateRequestMode
ValidationGroup
ViewState
ViewStateIgnoresCase
ViewStateMode
Visible
Width
METODOS
Nombre
AddAttributesToRender
AddedControl
AddParsedSubObject
ApplyStyle
ApplyStyleSheetSkin
BeginRenderTracing
BuildProfileTree
ClearCachedClientID
ClearChildControlState
ClearChildState
ClearChildViewState
ClearEffectiveClientIDMod
e
ClearSelection
ConfirmInitState
Descripcin
Agrega atributos y estilos HTML que se deben
representar en el
objeto HtmlTextWriter especificado. (Invalida
aListControl.AddAttributesToRender(HtmlTextWrit
er)).
Se le llama una vez que se ha agregado un
control secundario a la
coleccin Controls del Control objeto. (Se hereda
deControl).
Indica al control de servidor que se ha analizado
un elemento, ya sea XML o HTML, y agrega dicho
elemento al objetoControlCollection del control de
servidor. (Se hereda de Control).
Copia en el control Web todos los elementos no
vacos del estilo especificado, sobrescribiendo los
elementos de estilo existentes del mismo. Este
mtodo lo usan principalmente los
programadores de controles. (Se hereda
deWebControl).
Aplica al control las propiedades de estilo
definidas en la hoja de estilos de la pgina. (Se
hereda de Control).
Comienza el seguimiento en tiempo de diseo de
los datos de representacin. (Se hereda
de Control).
Infraestructura. Recopila informacin sobre el
control de servidor y la pasa a la
propiedad Trace para que se muestre cuando est
habilitada la traza de la pgina. (Se hereda
de Control).
Infraestructura. Establece en null el valor
de ClientID almacenado en cach. (Se hereda
de Control).
Elimina la informacin sobre el estado de control
de los controles secundarios del control de
servidor. (Se hereda deControl).
Elimina la informacin sobre el estado de vista y
el estado de control de los controles secundarios
del control de servidor. (Se hereda de Control).
Elimina la informacin sobre el estado de vista de
todos los controles secundarios del control de
servidor. (Se hereda de Control).
Infraestructura. Establece la
propiedad ClientIDMode de la instancia del
control actual y de cualquier control secundario
en Inherit. (Se hereda de Control).
Vaca la seleccin de la lista y establece la
propiedad Selected de todos los elementos en
falso. (Se hereda deListControl).
Establece el estado inicializado del control
10
CopyBaseAttributes
CreateChildControls
CreateControlCollection
CreateControlStyle
CreateDataSourceSelectAr
guments
DataBind()
DataBind(Boolean)
DataBindChildren
Dispose
EndRenderTracing
EnsureChildControls
EnsureDataBound
11
EnsureID
Equals(Object)
Finalize
FindControl(String)
FindControl(String, Int32)
Focus
GetData
GetDataSource
GetDesignModeState
GetHashCode
GetRouteUrl(Object)
GetRouteUrl(RouteValueDi
ctionary)
GetRouteUrl(String,
Object)
GetRouteUrl(String,
RouteValueDictionary)
GetType
GetUniqueIDRelativeTo
HasControls
HasEvents
12
IsLiteralContent
LoadControlState
LoadPostData
LoadViewState
MapPathSecure
MarkAsDataBound
MemberwiseClone
MergeStyle
OnBubbleEvent
OnCreatingModelDataSour
ce
OnDataBinding
OnDataBound
OnDataPropertyChanged
OnDataSourceViewChange
d
OnInit
OnLoad
OnPagePreLoad
OnPreRender
13
OnSelectedIndexChanged
OnTextChanged
OnUnload
OpenFile
PerformDataBinding
PerformSelect
RaiseBubbleEvent
RaisePostDataChangedEv
ent
RemovedControl
Render
RenderBeginTag
RenderChildren
RenderContents
RenderControl(HtmlTextW
riter)
RenderControl(HtmlTextW
riter, ControlAdapter)
RenderEndTag
ResolveAdapter
14
ResolveClientUrl
ResolveUrl
SaveControlState
SaveViewState
SetDesignModeState
SetPostDataSelection
SetRenderMethodDelegat
e
SetTraceData(Object,
Object)
SetTraceData(Object,
Object, Object)
ToString
TrackViewState
ValidateDataSource
VerifyMultiSelect
15
EJEMPLO
EJEMPLO 1-FERIA DE AUTOS:
EJEMPLO 2-TELEFONIA:
16
EJEMPLO 3-CALCULADORA
EJEMPLO 4-AGENDA:
17
18
EJEMPLO 7:
19
20
EJEMPLO 12-LISTA:
21
EJEMPLO 14-TRIANGULO:
22
23
24
25
26
27
EJEMPLO 35 - PRODUCTOS:
28
29
30
EJEMPLO 41 - DESCRIPCION:
31
EJEMPLO 44 - AGREGAR:
32
EJEMPLO 46 REGISTRO
33