G
Guest
Is it possible to create an onclick event which is attached to individual
datalist items?
I have a Datalist with some details on employees, and when you click on one
we would like to open a new window which will be populated with some more
data on this employee.
The closest I have come is populating the
DataList.Attributes.Add("onclick","sUrl") with some information but when I
run the code it needs two clicks to open a window, and on the second click
opens the previous employee details...
DataList with two employees: -
Emp1, Emp2
Click on Emp1 - nothing happens although the Attribute is added to the
DataList. On second click I select Emp2 and the app shows details of Emp1.
Help is required...
datalist items?
I have a Datalist with some details on employees, and when you click on one
we would like to open a new window which will be populated with some more
data on this employee.
The closest I have come is populating the
DataList.Attributes.Add("onclick","sUrl") with some information but when I
run the code it needs two clicks to open a window, and on the second click
opens the previous employee details...
DataList with two employees: -
Emp1, Emp2
Click on Emp1 - nothing happens although the Attribute is added to the
DataList. On second click I select Emp2 and the app shows details of Emp1.
Help is required...