anpalmer
Newcomer
Hi,
Does anyone know if it is possible to bind data directly to a label?
I want to retrieve some information from an SQL database and bind this to a label (writing in vb by the way) so the information can be used to control things within the website.
I have a series of user controls that I want only to be visible if a certain value (retrieved from the sql database) is equal to a certain value. This is essential to the site as it will prevent people from attempting to do things they should not be able to do.
I have all the if statements ready within my application logic to control what I have described, the only thing I am missing is the data.
I have tried binding to a datalist with a label embedded in it, this works fine but then the label becomes inaccessible to any thing else within the webpage. I have also tried creating a global variable, but again the problem is assigning the value retrieved from the database to the global variable.
Any ideas anyone?
:-\
Does anyone know if it is possible to bind data directly to a label?
I want to retrieve some information from an SQL database and bind this to a label (writing in vb by the way) so the information can be used to control things within the website.
I have a series of user controls that I want only to be visible if a certain value (retrieved from the sql database) is equal to a certain value. This is essential to the site as it will prevent people from attempting to do things they should not be able to do.
I have all the if statements ready within my application logic to control what I have described, the only thing I am missing is the data.
I have tried binding to a datalist with a label embedded in it, this works fine but then the label becomes inaccessible to any thing else within the webpage. I have also tried creating a global variable, but again the problem is assigning the value retrieved from the database to the global variable.
Any ideas anyone?
:-\