Wrox Programmer Forums
|
Classic ASP Espanol Esta es una lista de correo dedicada al intercambio de conocimiento sobre ASP 3 en el idioma español.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Espanol section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 8th, 2007, 07:53 AM
Registered User
 
Join Date: Mar 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Obtener el texto de un selectbox

Hola, tengo el siguiente problema, estoy tratando de obtener el valor de un select box en ASP pero solo he encontrado las instrucciones para recopilar el valor de la opcion seleccionada y no el texto, por ejemplo:

si tengo...

<select name="selOpt1" id="selOpt1">
         <option value="0" selected="selected">Seleccionar Opcion</option>
         <option value="1.00">Primera Opcion</option>
         <option value="2.00">Segunda Opcion</option>
         <option value="3.00">Tercera Opcion</option>
       </select>

si utilizo Request.Form.Key() obtengo el nombre del objeto, en este ejemplo obtendria "selOpt1" y si utilizo Request.Form.Item() obtengo el valor, en este ejemplo "1.00" ó "2.00" etc, pero si deseo el texto "Primer Opcion" o "Segunda Opcion" ¿como le hago?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problema de atraso en el profile Luis Rubio ASP.NET Espanol 0 October 6th, 2006 01:55 PM
Conectar textbox a campo de base de datos Access aya_hbkenshin04 ASP.NET Espanol 0 May 4th, 2006 01:26 PM
why de sql compiler do not parse de following? deniscuba SQL Language 2 February 4th, 2005 04:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.