B
brian
I have a datalist bound to a dataset using SQL server
2000.
There is 1 button in the datalist and the buttons text
property is bound in the databinding properties.
How can I find the text of the button in the code behind?
I have tried e.item.findcontrol("txtName", Button).text
but get an error saying "button is a type and can't be
used as an expression"
I have also tried using CTYPE.
Currently it is being assigned to a string datatype but I
have also tried assigning it to a control type.
Thanks for any suggestions
2000.
There is 1 button in the datalist and the buttons text
property is bound in the databinding properties.
How can I find the text of the button in the code behind?
I have tried e.item.findcontrol("txtName", Button).text
but get an error saying "button is a type and can't be
used as an expression"
I have also tried using CTYPE.
Currently it is being assigned to a string datatype but I
have also tried assigning it to a control type.
Thanks for any suggestions