Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_espanol thread: Configuracion Web.Config


Message #1 by "BASTARDO Antonio J. TESIS" <FOTESAZB@s...> on Mon, 18 Mar 2002 09:02:48 -0400
Eso es exactamente lo q tenes q hacer
usar el metodo GetType de Control y compararlo con el string
System.Web.UI.WebControls.TextBox.

Matias

> -----Original Message-----
> From: BASTARDO Antonio J. TESIS [mailto:FOTESAZB@s...]
> Sent: lunes, 18 de marzo de 2002 18:12
> To: ASP.Net en Español
> Subject: [aspx_espanol] Re: Configuracion Web.Config
>
>
> Salu2, victor en mi caso tengo que recorrer la coleccion completa de
> controles ya que no se especificamnete donde quede alguno.
> yo hago esto:
> System.Web.UI.WebControls.TextBox obj
> foreach(Control ctrl in frm.Controls)
> 			{
>
> obj=(System.Web.UI.WebControls.TextBox) ctrl;
> 			}
> Y me da un error de exception por el cast que hago.
> Lo que yo necesito es poder pasar el elemento ctrl al obj para poder tener
> la propiedad Enabled disponible, se que el error pueda estar
> dando a  que no
> todos los elementos en la webform sean textbox, con GetType puedo
> obtener su
> tipo, mas no se los valores que devuelve, la mando a imprimir y me da toda
> su descripcion ,System.Web.UI.WebControls... , y quisiera saber
> si hay algun
> valor mas corto para poder hacer la comparacion.
> Salu2
>
> -----Mensaje original-----
> De: Victor Garcia Aprea [mailto:vga@o...]
> Enviado el: Monday, March 18, 2002 3:07 PM
> Para: ASP.Net en Español
> Asunto: [aspx_espanol] Re: Configuracion Web.Config
>
>
> " Notificación Automática:  Este mensaje ha sido recibido desde
> la Internet,
> no se garantiza la autenticidad del remitente. "
>
>
>
> Antonio,
>
> Usa esto:
>
> // reemplaza 0 por el indice que quieras
> TextBox tb = (TextBox)Controls[0];
>
>
> Saludos,
> -Victor.
>
>
> > -----Original Message-----
> > From: BASTARDO Antonio J. TESIS [mailto:FOTESAZB@s...]
> > Sent: Monday, March 18, 2002 3:56 PM
> > To: ASP.Net en Español
> > Subject: [aspx_espanol] Re: Configuracion Web.Config
> >
> >
> > Gracias.
> > Otra pregunta, es posible hacer un cast de un objeto,
> > necesito transformar un objeto de la coleccion Controls a
> > textbox... Por dewfinicion en C#, todo es object creo que si
> > pero intente hacer algo y me dio error de ejecucion... Soy
> > nuebvo en el entorno y no se todavia hacer cast. salu2
> >
> > -----Mensaje original-----
> > De: Luis Ruiz [mailto:lruiznkike77@y...]
> > Enviado el: Monday, March 18, 2002 10:38 AM
> > Para: ASP.Net en Español
> > Asunto: [aspx_espanol] Re: Configuracion Web.Config
> >
> >
> > " Notificación Automática:  Este mensaje ha sido recibido
> > desde la Internet, no se garantiza la autenticidad del remitente. "
> >
> >
> > La instruccion es con "Off"
> >
> > <customErrors mode="Off" />
> >
> >
> > Luis Ruiz
> >
> > --- "BASTARDO Antonio J.       TESIS"
> > <FOTESAZB@s...> wrote:
> > > Estoy intentando configurar el archivo web.config
> > > para poder apreciar los
> > > errores en maquinas remotas y no solo la local,
> > > segun el mensaje que da de
> > > error debo pasar la propiedad del taqg de off a on y
> > > estaria listo, lo hago
> > > pero sigue dando el mismo mensaje.
> > >
> > > Podrian decirme que estoy haciendo mal.
> > >
> > > <customErrors mode="On" />
> > >
> > > Salu2
> > >
> > > -----Mensaje original-----
> > > De: Jose Ramon Suero Paulino
> > > [mailto:jose_suero@h...]
> > > Enviado el: Saturday, March 16, 2002 7:29 PM
> > > Para: ASP.Net en Español
> > > Asunto: [aspx_espanol] Archivo de Configuracion
> > >
> > >
> > >
> > > " Notificación Automática: Este mensaje ha sido
> > > recibido desde la Internet,
> > > no se garantiza la autenticidad del remitente. "
> > >
> > >
> > >
> > > Alguien sabe si existe un archivo de configuración
> > > tipo web.config para los
> > > windows applications?  o tendré que hacer un XML by
> > > myself
> > >
> > >
> > >
> > >
> > > ==========================================
> > > José Ramón Suero P. <mailto:jose_suero@h...>
> > > Encargado de Contenido
> > > Universidad  <http://www.unphu.edu.do/> Nacional
> > > Pedro Henriquez Ureña
> > > Casa. 566-7927 | Cel. 953-6891
> > >
> > >
> > >    _____
> > >
> > > Send and receive Hotmail on your mobile device:
> > > Click Here
> > > <http://g.msn.com/1HM300901/1U>
> > > ---
> > > Usted está suscrito a aspx_espanol como:
> > > fotesazb@s...
> > > Para darse de baja, envíe un mensaje en blanco a
> > > %%email.unsub%%
> > >
> > >
> > >
> > > " Notificación automática: Este mensaje y cualquier
> > > archivo que se adjunte
> > > contiene información privilegiada y confidencial.
> > > Es para uso exclusivo del
> > > destinatario.  Si usted ha recibido esta
> > > comunicación por error, por favor
> > > avísenos inmediatamente.
> > >   Automatic notification:  This e-mail and any file
> > > transmitted with it are
> > > confidential and may be legally privileged. It is
> > > intended solely for the
> > > addressee and may not be disclosed to or used by
> > > anyone other than the
> > > addressee. If you have received this e-mail by
> > > mistake , please advise the
> > > sender immediately. "
> > >
> > >
> > > ---
> > > Usted está suscrito a aspx_espanol como: lruiznkike77@y...
> > > Para darse de baja, envíe un mensaje en blanco a
> > > %%email.unsub%%
> > >
> > >
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/
> >
> > ---
> > Usted está suscrito a aspx_espanol como:
> > fotesazb@s...
> > Para darse de baja, envíe un mensaje en blanco a
> > %%email.unsub%%
> >
> >
> >
> > " Notificación automática: Este mensaje y cualquier archivo
> > que se adjunte contiene información privilegiada y
> > confidencial.  Es para uso exclusivo del destinatario.  Si
> > usted ha recibido esta comunicación por error, por favor
> > avísenos inmediatamente.
> >   Automatic notification:  This e-mail and any file
> > transmitted with it are confidential and may be legally
> > privileged. It is intended solely for the addressee and may
> > not be disclosed to or used by anyone other than the
> > addressee. If you have received this e-mail by mistake ,
> > please advise the sender immediately. "
> >
> > ---
> > Usted está suscrito a aspx_espanol como:
> > vga@o...
> > Para darse de baja, envíe un mensaje en blanco a
> > %%email.unsub%%
> >
> >
>
>
> ---
> Usted está suscrito a aspx_espanol como:
> fotesazb@s...
> Para darse de baja, envíe un mensaje en blanco a
> %%email.unsub%%
>
>
>
> " Notificación automática: Este mensaje y cualquier archivo que se adjunte
> contiene información privilegiada y confidencial.  Es para uso
> exclusivo del
> destinatario.  Si usted ha recibido esta comunicación por error, por favor
> avísenos inmediatamente.
>   Automatic notification:  This e-mail and any file transmitted
> with it are
> confidential and may be legally privileged. It is intended solely for the
> addressee and may not be disclosed to or used by anyone other than the
> addressee. If you have received this e-mail by mistake , please advise the
> sender immediately. "
>
> ---
> Usted está suscrito a aspx_espanol como:
> woloski@s...
> Para darse de baja, envíe un mensaje en blanco a
> %%email.unsub%%
>



  Return to Index