If I had an ASP.NET 4.0 DataView control that looked below, how can I manage client side javaScript events?
Body tag:
<body xmlns:sys="javascript:Sys" xmlns:dataview="javascript:Sys.UI.DataView" sys:activate="*">
DataView Tag:
<ul sys:attach="dataview" dataview:data="{{ ListOfPeople }}" class="sys-template"> <li> <div>{{ GivenName }}</div> <div>{{ SurName }}</div> <div>{{ Title }}</div> <div>{{ Department }}</div> <div>{{ Phone }}</div> <div>{{ EmailAddy }}</div> </li> </ul>
For example, I want a button or a link to "select" this record and send the server an e-mail or mark them in a database or even something as simple as changing the style of a selected row to bring the user focuses on it.
source share