how to get a boundfield of a detailsview in javascript?

A

André

Hi,

I want
I defined a detailsview connected to a datasource. The purpose is: when an
user clicks into a particular field (when the focus is on that field),
something must happen.My problem is: how to get that field in javascript,
because i can't define an 'ID' for a boundfield.

<asp:DetailsView ID="DetailsView1" runat="server"
DataSourceID="SqlDataSource1" etc .../>
<Fields>
<asp:BoundField DataField="pcnr" HeaderText="pcnr" etc ...
/>
<asp:BoundField DataField="pcnr" HeaderText="pcnr" etc ...
/>
....
</Fields>
</asp:DetailsView>

<script language=javascript>
function foc()
{
var a=document.getElementById("??")
//var a=document.forms[0].tags(??) ...
}
....
</script>

Thanks
André
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top