how to trigger an action by clicking in a field of detailsview?

A

André

Hi,

is it possible to trigger an action (e.g. make visible a button) when
clicking in a particular field of a detailsview? I think is it, but how?

I tried it on several ways, but no succes.
Doing this on client-side raises the problem: how to get the field in the
javascript code, because the tag <asp:boundfield DataField=... > does not
contain the element "ID" nor it's possibel to use onclick="..'

In code-behind, i can get the fieldname, but can't give the focus to it:
Protected Sub DetailsView1_DataBound(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DetailsView1.DataBound
Dim a As DataControlField
Dim b As String
a = DetailsView1.Fields(5)

Please any hints would be welcome
Thanks in advance
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

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top