![]() |
problema con un campo texto con comas porque al sustituir en un form el valor de un campo de un DB que contienen comas el codigo se queda hasta donde esta la coma y no muestra el campo en el formulario si lo hago asi no funciona <input name="mide" type="text" id="mide" value="<%=rsPuesto("forma")%>" size="70" /> si lo hago asi funciona correctamente <input name="mide" type="text" id="mide" value="<%=Replace(rsPuesto("forma"),",","")%>" size="70" /> |
Re: problema con un campo texto con comas en ese caso se requiere de tu codigo, para ver que esta pasando :adios: |
Re: problema con un campo texto con comas <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <!--#include file="../../includes/data1.asp" --> <!--#include file="../../includes/adovbs.inc" --> <% Response.addHeader "pragma", "no-cache" Response.CacheControl = "Private" Response.Expires = 0 %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <head> <title>Documento sin título</title> <link href="includes/stilos.css" rel="stylesheet" type="text/css" /> </head> <body> <% Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open ConString Set rsPuesto = Conn.Execute("SELECT * From contribucion where id="&Request.QueryString("ide")&" Order By peso") %> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <form action="guarda_contribucion.asp" method="post"> <table width="630" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="116" height="23" class="lista">Peso:</td> <td colspan="3"><input name="peso" type="text" class="inputbox_big" id="peso" value="<%=rsPuesto("peso")%>" size="2" /></td> </tr> <tr> <td class="lista">Contribución:</td> <td colspan="3"><input name="nombre" type="text" class="inputbox_big" id="nombre" value="<%=rsPuesto("nombre")%>" size="70" /> <input name="usuario" type="hidden" id="usuario" value="<%=rsPuesto("ide_usuario")%>" /> <input name="ide" type="hidden" id="ide" value="<%=rsPuesto("id")%>" /> <%'=rsPuesto("id")%></td> </tr> <tr> <td class="lista">Como se Mide: </td> <td colspan="3"><input name="mide" type="text" id="mide" value="<%=Replace(rsPuesto("forma"),",","")%>" size="70" /></td> </tr> <tr> <td height="22" colspan="4"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="36%" height="20" class="lista"><span class="lista" style="padding-left:18px;">Proveedores</span></td> <td width="53%" class="lista" style="padding-left:18px;">Clientes</td> <td width="11%"> </td> </tr> <tr> <td><textarea name="proveedor" cols="45" rows="3" class="inputbox_big3" id="proveedor" style="padding:1px;"><%=rsPuesto("proveedor")%></textarea></td> <td> <div align="left"> <textarea name="cliente" cols="45" rows="3" class="inputbox_big3" id="cliente" style="padding:1px;"><%=rsPuesto("cliente")%></textarea> </div></td> <td valign="bottom"><input name="Submit2" type="submit" class="txt_formulario" value="Grabar" /></td> </tr> </table> </td> </tr> </table> </form> </td> </tr> </table> </body> </html> ::::::::::::::::::::::::::::::::::::: el problema se presenta si el valor del campo contiene comas (",") diagonales (/) etc |
| La zona horaria es GMT -6. Ahora son las 23:44. |
Desarrollado por vBulletin® Versión 3.8.7
Derechos de Autor ©2000 - 2026, Jelsoft Enterprises Ltd.