miércoles, 17 de marzo de 2010

The Client-Side API - ASP.NET Validation

Client-side objects

NameTypeDescription
Page_IsValidBoolean variableIndicates whether the page is currently valid. The validation scripts keep this up to date at all times.
Page_ValidatorsArray of elementsThis is an array containing all of the validators on the page.
Page_ValidationActiveBoolean variableIndicates whether validation should take place. Set this variable to False to turn off validation programmatically.
isvalidBoolean propertyThis is a property on each client validator indicating whether it is currently valid.

Functions called from client-side script

NameDescription
ValidatorValidate(val)Takes a client-validator as input. Makes the validator check its input and update its display.
ValidatorEnable(val, enable)Takes a client-validator and a Boolean value. Enables or disables a client validator. Being disabled will stop it from evaluating and it will always appear valid.
ValidatorHookupControl(control, val)Takes an input HTML element and a client-validator. Modifies or creates the element's change event so that it updates the validator when changed. This can be useful for custom validators that depend on multiple input values.

Frases Filosoficas.NET

1) "Hacer Software es naufragar en mares de orillas dinámicas"
2) "Pincha en otro lado...Señal de que avanzamos" ( visualizando la orilla...allá a lo lejos)
3) "Siempre es mas fácil hacerlo la segunda vez" (Acababa de perder el trabajo de un día y medio, "Y ademas sale mejor".
4): "7 de la tarde y el código sin subir" (Otra genialidad, cuando las papas queman)
5) "No hay presente perfecto, ni pasado sin pecado"(Que mas decir...)
6) "Los jardineros tapan sus errores con flores,
los cocineros tapan sus errores con salsa,
los medicos tapan sus errores con tierra,
y los informaticos tapan sus errores con css".
7) Lo que te falta no es tiempo, es dinero!
8) "Sabés que siento...que me volvieron los ojos al agujero" (despues del descanso de navidad. Ehhhh ummmmm Ehhhh hay que aclarar algo?)

viernes, 5 de marzo de 2010

sp_changeobjectowner (Transact-SQL)

Cambia el propietario de un objeto en la base de datos actual.

sp_changeobjectowner [ @objname = ] 'object' , [ @newowner = ] 'owner'

Ejemplo:
EXEC sp_changeobjectowner 'QeQDev', 'dbo';
GO