Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 28 Aug 2008 01:29:57 -0700 (PDT),    group: microsoft.public.dotnet.framework.aspnet        back       


How to get text from CheckBox.Text property   
MSDN lists .text as a propoerty of the asp check obox but can anyone
help me to find out how to access it? We have a panel at the top of
our list forms that allows the user to select which columns to show
from an SQL stored procedure (via business level code). We have
succeeded in getting the names of the check boxes and using this to
select the columns - by using the same names for the checkboxes (with
chk stripped off the beginning of them) as for the database fields.
However, the field names in the SQL database are very obscure and we
would like to use the clearer names that we have in the check box text
label as the headings for the datagrid list - eg Company type instead
of CoTypeCodeName. However, we seem not to be able to get anything
from the .text property. Is there another way of getting the text from
the label that is associated wth a check box? Many thanks for any help
date: Thu, 28 Aug 2008 01:29:57 -0700 (PDT)   author:   neilr

Re: How to get text from CheckBox.Text property   
On Aug 28, 9:29 am, neilr  wrote:
> MSDN lists .text as a propoerty of the asp check obox but can anyone
> help me to find out how to access it? We have a panel at the top of
> our list forms that allows the user to select which columns to show
> from an SQL stored procedure (via business level code). We have
> succeeded in getting the names of the check boxes and using this to
> select the columns - by using the same names for the checkboxes (with
> chk stripped off the beginning of them) as for the database fields.
> However, the field names in the SQL database are very obscure and we
> would like to use the clearer names that we have in the check box text
> label as the headings for the datagrid list - eg Company type instead
> of CoTypeCodeName. However, we seem not to be able to get anything
> from the .text property. Is there another way of getting the text from
> the label that is associated wth a check box? Many thanks for any help

OK - no problem I found how to do this - - we had not specified
"mycontrol" as a checkbox - when we did , the checkbox.text property
worked - - stupid error on our part
date: Mon, 1 Sep 2008 06:26:32 -0700 (PDT)   author:   neilr

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us