Posts

Showing posts from September, 2006

Problemas con certificados de KDC

Algunas veces se recibe este error en el Domain Controllers Event Type: Warning Event Source: KDC Event Category: None Event ID: 20 Date: 9/1/2004 Time: 3:27:54 AM User: N/A Computer: MyServer Description: The currently selected KDC certificate was once valid, but now is invalid and no suitable replacement was found. Smartcard logon may not function correctly if this problem is not remedied. Have the system administrator check on the state of the domain's public key infrastructure. The chain status is in the error data. Esto se debe a que el DC contiene una referencia a un certicado invalido, para arreglar esto ejecute el siguiente comando. certutil -dcinfo deleteBad

Mostrar PopUp Window en ASP.NET

Si desea hacer un PopupWindow in ASP.NET tiene que agregar el codigo siguiente en la pantalla principal. RegisterStartupScript("POP", " var rc = new Array(0,0); " & _ " rc = window.showModaldialog('popup.aspx','name','height=450,width=700,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes'); " & _ " if (rc != null) { if(rc[0]!=null) {document.getElementById('txt_id').innerText=rc[0]; document.getElementById('txtName').innerText=rc[1];}}" & _ " ") En la pagina PopUp en el evento para regresar los datos debes agregar: Response.Write(" " & _ " var uid= '" + id + "'; " & _ " var lay= '" + name + "'; " & _

El evento Page Load y ShowModalDialog

Cuando se despliega una pagina utilizando la instruccion ShowModalDialog de JavaScipt el evento PageLoad solo se ejecuta la primera vez, para solucionarlo agregar este codigo en el PageLoad Response.Expires = 0 Response.Cache.SetNoStore() Response.AppendHeader("Pragma", "no-cache")