Home All Groups Group Topic Archive Search About

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

Author
23 Jun 2006 8:18 AM
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é

Author
23 Jun 2006 1:37 PM
Winista
This article should give you a starting point.

http://www.netomatix.com/development/GridViewClientSideAccess.aspx

Winista
http://www.universalshoppingmall.com


Show quoteHide quote
"André" <yue***@geloerd.fv> wrote in message
news:e1WM$2plGHA.2344@TK2MSFTNGP04.phx.gbl...
> 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é
>
>
Are all your drivers up to date? click for free checkup

Author
23 Jun 2006 2:09 PM
André
Thanks

Show quoteHide quote
"Winista" <wini***@gmail.com> wrote in message
news:umtAWqslGHA.1640@TK2MSFTNGP02.phx.gbl...
> This article should give you a starting point.
>
> http://www.netomatix.com/development/GridViewClientSideAccess.aspx
>
> Winista
> http://www.universalshoppingmall.com
>
>
> "André" <yue***@geloerd.fv> wrote in message
> news:e1WM$2plGHA.2344@TK2MSFTNGP04.phx.gbl...
> > 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é
> >
> >
>
>

Bookmark and Share

Post Thread options