How to bind data to a dropdown in a datalist thats
Hi,
I am currently writing a LiveUpdate manager. Although everything is going quite smoothly, I have just encountered my first annoyance.
In SQLServer 2000, I have a Version table in which a FK references the Software to which this version applies.
Now my datalist is binded to the version table and I have a dropdown in the edit template which should contain a) the PK of the software as itemvalue and b)the name of the software as itemtext. Everything is fine on other forms where the dropdown isn't in a datalist.
My problem is when using the FindControl method of a DataList item, it always returns "Nothing" as object reference, and therefore, I can't bind the software data to my dropdown I have tried to bind the data in numerous events, but always with the same result, object reference is always null... OnUpdate won't cut it, because a click of some sort is needed, and OnEdit returns a null object reference when trying to find the control.
Any insight on an event i might have missed? Let me know if posting code might help...
|