|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how to trigger an action by clicking in a field of detailsview?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é 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é > > 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é > > > > > >
ValidationControl evaluationfunction ASP.NET 2.0
Gridview extra header row with command button and paging validation message only show in val summary when ShowSummary=true when no js to execute on client Web control which is a combobox with an editable portion XML Dropdownlist- Custom DataTextField Anyway to enable a ToolTip for each ListItem Is it possible to get only the "Selected" text out of a TextBox radiobuttons - no list Display text with <newline> characters... Wizard Control |
|||||||||||||||||||||||