Hi,
Probably something very simple that I have missed. I am in the process of converting an old ASP application to ASP.NET 2.0.
The code-behind is done in C# and so far I have had no problems however I have created a webform that contains several textboxes, drop down lists and checkboxes. I have a couple of classes that perform a lookup on the database and then populate the form fields with the data retrieved.
I can get all the data however I have noticed only he checkboxes do not seem to update i.e. they do not show the tick.
My code is being executed during the page load event and I have a simple line doing the following:
The value is being returned correctly so I can't see why the checkbox is not displaying a tick once the page load is complete.
Any ideas?
Thanks in advance,
Fz
Probably something very simple that I have missed. I am in the process of converting an old ASP application to ASP.NET 2.0.
The code-behind is done in C# and so far I have had no problems however I have created a webform that contains several textboxes, drop down lists and checkboxes. I have a couple of classes that perform a lookup on the database and then populate the form fields with the data retrieved.
I can get all the data however I have noticed only he checkboxes do not seem to update i.e. they do not show the tick.
My code is being executed during the page load event and I have a simple line doing the following:
Code:
checkbox1.Checked = getcheckboxvalue();
Any ideas?
Thanks in advance,
Fz