lunes, 1 de octubre de 2007

Fix Error

En este foro menciono por qué ocurre el siguiente error:


Sys.ArgumentException: AjaxControlToolkit.Animation.Animation.set_animationTarget requires the ID of a Sys.UI.DomElement or Sys.UI.Control. No element or control could be found corresponding to btnControl'Parameter name: idhttp://localhost/Atlas/....................


Link: http://forums.asp.net/p/1078504/1932505.aspx#1932505

martes, 25 de septiembre de 2007

Login Control: How to Override ReturnURL in ASP.NET

¿Como establecer la página destino después de tener éxito con el acceso en el control Login?
¿Porque no funciona DestinationPageURL del control Login?

Se debe a un bug del compilador. Una alternativa es usar:


FormsAuthentication.SetAuthCookie(LoginControl.UserName, false);
Response.Redirect(destinationPage, true);

O usar el evento 'LoginControl_LoggedIn' en el cual se debe poner:


Response.Redirect(URL_Destino, true);

Form Authentication: Acceso a sitios web

Interesante link para autenticar usuarios

http://msdn2.microsoft.com/es-es/library/aa302388.aspx

Agregar CSS sin usar archivos *.css

<style type="text/css">
.contenedor
{
background-color:Aqua;
}
</style>

Generalmente se pone en el head, pero puede ir en cualquier parte!.