
03/02/2008, 12:12
|
 | | | Fecha de Ingreso: enero-2004
Mensajes: 425
Antigüedad: 21 años, 4 meses Puntos: 1 | |
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 |