Re: FindControl
From: tma (tma_at_allisconfusing.net)
Date: 08/09/04
- Next message: IGotYourDotNet: "include files"
- Previous message: Tomasz Waraksa: "Re: ObjectSpaces - Alternative"
- In reply to: Kevin Spencer: "Re: FindControl"
- Next in thread: Kevin Spencer: "Re: FindControl"
- Reply: Kevin Spencer: "Re: FindControl"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 9 Aug 2004 07:59:21 -0500
This what I'm trying to do:
Dim chkEqmtRental As WebControls.CheckBox
chkEqmtRental = plh.FindControl("chkEqmtRental")
If chkEqmtRental.Checked Then
...some code...
End If
Presently, the chkEqmtRental.Checked always evaluates to FALSE.
"Kevin Spencer" <kspencer@takempis.com> wrote in message
news:Ok9gD2gfEHA.632@TK2MSFTNGP12.phx.gbl...
> You code below assigns the checkbox (assuming it is found) to a variable.
As
> Checked is a property of the checkbox, you should have no trouble
accessing
> it. So, you might want to explain what you're trying to say.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "tma" <tma@allisconfusing.net> wrote in message
> news:eRU3VrgfEHA.3200@TK2MSFTNGP09.phx.gbl...
> > My code below returns the .text property of the chkEqmtRental check box
> but
> > not it's checked state. I'm creating the control in a placeholder and
need
> > to access the check box in the codebehind. Also, is it possible to
access
> > events for that control and if so, how?
> > chkEqmtRental = plh.FindControl("chkEqmtRental")
> >
> >
> >
> >
> >
> >
>
>
- Next message: IGotYourDotNet: "include files"
- Previous message: Tomasz Waraksa: "Re: ObjectSpaces - Alternative"
- In reply to: Kevin Spencer: "Re: FindControl"
- Next in thread: Kevin Spencer: "Re: FindControl"
- Reply: Kevin Spencer: "Re: FindControl"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|