Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/04/2010, 08:34
anjubama
 
Fecha de Ingreso: abril-2010
Mensajes: 4
Antigüedad: 15 años
Puntos: 0
Problema Mshtml.dll

Hola, Soy nuevo y ojala puedan atudarme.

Estoy haciendo un desarrollo en asp, y cada vez que accedo a el, ya sea de inmediato o al haber accedido varias veces a el, me sale un error de internet explorer, "ie a detectado un problema y debe cerrarce ..." este problema sucede en ie 6,7 u 8 osea que no es por actualizacion.

Este es el codigo:

Código ASP:
Ver original
  1. <%@ Language=VBScript %>
  2. <%
  3. Response.AddHeader "Pragma", "no-cache"
  4. Response.AddHeader "cache-control","private"
  5. Response.CacheControl = "no-cache"
  6. response.expires = 0
  7. on error resume next
  8. 'cadena para abrir base de datos
  9. ''''''
  10.  
  11. dim modificaciones
  12. dim observaciones
  13. dim mensageerror
  14. modificaciones = request.form("modificaciones")
  15. observaciones = request.form("observaciones")
  16. strrepeso = request.form("repeso")
  17. strcargue = request.form("cargue")
  18. strdescargue = request.form("descargue")
  19. strbodegaje = request.form("bodegaje")
  20. strstandby = request.form("standby")
  21. strotros = request.form("otros")
  22.  
  23. 'if isnull(strrepeso) or strrepeso="" then
  24.   'strrepeso = 0
  25. 'end if
  26.  
  27. if strrepeso <> "" then
  28. sqlmodi = "update orden_producción set repeso='" & strrepeso & "' where norden =" & request.form("cual") & ""
  29.         set oco12 = CreateObject("ADODB.connection")
  30.         oco12.open session("cadena")
  31.    
  32.        
  33.         oco12.execute sqlmodi
  34.        
  35.        
  36.         if err.number <> 0 then
  37.             response.write "<hr>ERROR EN INGRESAR LA MODIFICACIONN REPESO " & err.description          
  38.             RESPONSE.END
  39.         end if
  40.        
  41. end if
  42. if (strcargue <> "" or strdescargue <> "" or strbodegaje <> "" or strstandby <> "" or strotros <> "") then
  43.             sqlmodi = "update orden_producción set  cargue=" & strcargue & ", descargue='" & strdescargue & "', bodegaje='" & strbodegaje & "', standby='" & strstandby & "', otros='" & strotros & "' where norden =" &            request.form("cual") & ""
  44.         set oco12 = CreateObject("ADODB.connection")
  45.         oco12.open session("cadena")
  46.    
  47.        
  48.         oco12.execute sqlmodi
  49.    
  50.        
  51.         if err.number <> 0 then
  52.             response.write "<hr>ERROR EN INGRESAR LA MODIFICACION CARGUE " & err.description
  53.             RESPONSE.END
  54.         end if
  55. end if
  56.  
  57. if modificaciones <> "" then
  58.         set oco = CreateObject("ADODB.connection")
  59.         oco.open session("cadena")
  60.        
  61.        
  62.         sqlmodi = "update orden_producción set modificaciones='" & modificaciones & "' where norden =" & request.form("cual") & ""
  63.         oco.execute sqlmodi
  64.  
  65.        
  66.         if err.number <> 0 then
  67.             response.write "<hr>ERROR EN INGRESAR LA MODIFICACION " & err.description
  68.             RESPONSE.END
  69.         end if
  70.     end if
  71.     oco.close
  72.  
  73.  
  74. set oco2 = CreateObject("adodb.connection")
  75. oco2.open session("cadena")
  76.  
  77.  
  78. strSQL= "exec VerOrdenPro2 " + request.form("cual")
  79. set ors2 = oco2.Execute(strSQL)
  80.  
  81.  
  82.  
  83. set oco3 = CreateObject("adodb.connection")
  84. oco3.open session("cadena")
  85.  
  86.  
  87. strSQL= "select repeso from orden_producción where norden =" & request.form("cual") & ""
  88. set ors3 = oco3.Execute(strSQL)
  89.  
  90. %><!--<script>
  91. alert ("seleciono el repeso", "prueba")
  92. </script> -->
  93. <%
  94.  
  95. if session("cedula") = ucase(cstr(ors2("cCedulaUsu"))) then
  96. 'response.write ucase(cstr(strSQL(ors2(2))))
  97. 'response.write ucase(cstr(ors2("cCedulaUsu")))
  98. 'response.write session("cedula")
  99. 'response.end
  100.  
  101.  
  102.     if observaciones <> "" then
  103.  
  104.    
  105.         set oco = CreateObject("ADODB.connection")
  106.         oco.open session("cadena")
  107.  
  108.        
  109.         sqlmodi = "update orden_producción set observaciones='" & observaciones & "' where norden =" & request.form("cual") & ""
  110.         'response.write request.form("cual")
  111.         'response.write sqlmodi
  112.         'response.end
  113.         oco.execute sqlmodi
  114.  
  115.        
  116.         if err.number <> 0 then
  117.         response.write "<hr>ERROR EN INGRESAR LA OBSERVACION " & err.description
  118.             RESPONSE.END
  119.         end if
  120.     end if
  121. else
  122.             response.write "<hr><font size=6 color = #ff0000>SE INGRESO LA OBSERVACIÓN : </font><!--<BR><font size=5>USTED NO TIENE PERMISOS PARA EDITAR ESTE CAMPO</font>-->"
  123.         'response.write "ERROR AL MODIFICAR LA OBSERVACION: EL USUARIO QUE CREO LA O.P. NO CORRESPONDE AL DE MODIFICACION"
  124. end if
  125.  
  126. function Pro_DAto(strValor)
  127. if isnull(strValor) then
  128.   Pro_DAto = ""
  129. else
  130.   Pro_DAto = strValor  
  131. end if
  132. end function
  133. dim cual
  134. dim oco
  135. dim ors
  136. dim fechaCon
  137. dim mediocon
  138. DIM IDcONFIRMA
  139. dim noConfirmado
  140. dim cEmail
  141. dim cFax
  142. dim cTel
  143. dim cMovil
  144. dim cPersona  
  145. dim strOficina
  146. DIM oficina,sw
  147. sw=0
  148. if request.form("cual") = "" then
  149. cual = Request.QueryString("nroOrden")
  150. else
  151. cual = request.form("cual")
  152. end if
  153. '+++ver si el usuario es de Medellin
  154. strOficina="select iCodigo,cCiudad from oficinas where iCodigo= " & Session("Oficina") & ""
  155. set oco = CreateObject("adodb.connection")
  156. set orsrepeso = CreateObject("adodb.recordset")
  157. oco.open session("cadena")
  158.  
  159.  
  160. set ors = oco.execute(strOficina)
  161.  
  162.  
  163. oficina=lCase(ors("cCiudad"))
  164. if oficina= "medellín" then
  165.     sw=1
  166. end if
  167. ors.close
  168.  
  169.  
  170. set ors = nothing
  171.  
  172.  
  173. '***************
  174. set oco = CreateObject("adodb.connection")
  175. oco.open session("cadena")
  176.  
  177.  
  178. strSQL= "exec VerOrdenPro2 " + cual
  179. set ors = oco.Execute(strSQL)
  180.  
  181.  
  182. set oco = CreateObject("adodb.connection")
  183. oco.open session("cadena")
  184.  
  185.  
  186. strrepeso= "select * from orden_producción where norden =" & cual
  187. set orsrepeso = oco.execute(strrepeso)
  188.  
  189.  
  190. fechaCon = Pro_DAto(ors("dConfirma"))
  191. mediocon = Pro_DAto(ors("cConfirma"))
  192.  
  193.  
  194. %>
  195. <html xmlns:v="urn:schemas-microsoft-com:vml"
  196. xmlns:o="urn:schemas-microsoft-com:office:office"
  197. xmlns:x="urn:schemas-microsoft-com:office:excel"
  198. xmlns="http://www.w3.org/TR/REC-html40">
  199. <head>
  200. <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
  201. function test_onclick()
  202. {
  203. document.ver_orden_pro.action = "ver_Orden_pro.asp";
  204. document.ver_orden_pro.submit();
  205. }
  206. function obser_onclick()
  207. {
  208. document.ver_orden_pro.action = "ver_Orden_pro.asp";
  209. document.ver_orden_pro.submit();
  210. }
  211. </script>
  212. <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
  213. <meta name=ProgId content=Excel.Sheet>
  214. <meta name=Generator content="Microsoft Excel 9">
  215. <link rel=File-List href="./plantillaNUEVA_archivos/filelist.xml">
  216. <!--[if !mso]>
  217. <style>
  218. v\:* {behavior:url(#default#VML);}
  219. o\:* {behavior:url(#default#VML);}
  220. x\:* {behavior:url(#default#VML);}
  221. .shape {behavior:url(#default#VML);}
  222. </style>
  223. <![endif]-->
  224.  
  225.    
  226. </head>
  227.  
  228. <body>
  229. <%
  230. if  ors.EOF then
  231.    strParametros= "<hr color=#00008b><p><Strong>No se encontro la orden Número = </Strong><font size=7 color = #ff0000>" + cstr(cual) + "</font>"
  232. %>
  233. <%  
  234. else
  235. %>
  236. <!--[if !excel]>&nbsp;&nbsp;<![endif]-->
  237. <!--La siguiente información se generó mediante la característica Publicar como
  238. página Web de Microsoft Excel.-->
  239. <!--Si se vuelve a publicar el mismo elemento desde Excel, se reemplazará toda
  240. la información comprendida entre las etiquetas DIV.-->
  241. <!----------------------------->
  242. <!--INICIO DE LOS RESULTADOS DEL ASISTENTE PARA PUBLICAR COMO PÁGINA WEB DE
  243. EXCEL -->
  244. <!----------------------------->
  245.  
  246. <div id="ORDEN EN BLANCOnueva_29424" align=center x:publishsource="Excel">
  247. <table x:str border=0 cellpadding=0 cellspacing=0 width=764 class=xl2229424 style='border-collapse:collapse;table-layout:fixed;width:574pt;border-right:1.0pt solid black;border-top:1.0pt solid black;border-bottom:1.0pt solid black;'>
  248.  <col class=xl2229424 width=113 style='mso-width-source:userset;mso-width-alt:
  249.  4132;width:85pt'>
  250.  <col class=xl2229424 width=92 style='mso-width-source:userset;mso-width-alt:
  251.  3364;width:69pt'>
  252.  <col class=xl2229424 width=14 style='mso-width-source:userset;mso-width-alt:
  253.  512;width:11pt'>
  254.  <col class=xl2229424 width=45 style='mso-width-source:userset;mso-width-alt:
  255.  1645;width:34pt'>
  256.  <col class=xl2229424 width=54 style='mso-width-source:userset;mso-width-alt:
  257.  1974;width:41pt'>
  258.  <col class=xl2229424 width=69 style='mso-width-source:userset;mso-width-alt:
  259.  2523;width:52pt'>
  260.  <col class=xl2229424 width=64 style='mso-width-source:userset;mso-width-alt:
  261.  2340;width:48pt'>
  262.  <col class=xl2229424 width=95 style='mso-width-source:userset;mso-width-alt:
  263.  3474;width:71pt'>
  264.  <col class=xl2229424 width=67 style='mso-width-source:userset;mso-width-alt:
  265.  2450;width:50pt'>
  266.  <col class=xl2229424 width=63 style='mso-width-source:userset;mso-width-alt:
  267.  2304;width:47pt'>
  268.  <col class=xl2229424 width=88 style='mso-width-source:userset;mso-width-alt:
  269.  3218;width:66pt'>
  270.  <tr height=17 style='height:12.75pt'>
  271.   <td colspan=11 height=17 width=764  align=left valign=top style='border-right:1.0pt solid black;height:12.75pt;width:574pt' >
  272.   <![if vml]><span style='mso-ignore:vglayout;
  273.   position:absolute;z-index:0;margin-left:15px;margin-top:7px;width:164px;
  274.   height:89px'><img width=164 height=89
  275.   src="logo.gif"
  276.   v:shapes="_x0000_s1028"></span><![endif]>

Última edición por anjubama; 08/04/2010 a las 08:39