473,395 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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é
Jun 23 '06 #1
2 1138
This article should give you a starting point.

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

Winista
http://www.universalshoppingmall.com
"André" <yu****@geloerd.fv> wrote in message
news:e1**************@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é

Jun 23 '06 #2
Thanks

"Winista" <wi*****@gmail.com> wrote in message
news:um**************@TK2MSFTNGP02.phx.gbl...
This article should give you a starting point.

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

Winista
http://www.universalshoppingmall.com
"André" <yu****@geloerd.fv> wrote in message
news:e1**************@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é


Jun 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Scott CM | last post by:
I have a multi-part question regarding trigger performance. First of all, is there performance gain from issuing the following within a trigger: SELECT PrimaryKeyColumn FROM INSERTED opposed...
5
by: Peter Erickson | last post by:
I am running postgresql 7.4.2 and having problems creating a trigger function properly. I keep getting the following error: ERROR: OLD used in query that is not in rule I have a table called...
1
by: Simon | last post by:
Hi all... I've got an editable datagrid in my application. Clicking "edit" enables those fields to be editted, and then clicking Update triggers my code to do the update on the database. I...
2
by: Ram | last post by:
I'm using detailsview control with a template field which contains a dropdownlist I databind the dropdownlist during page load, now the problem is dropdownlist loses state during postbacks, i...
2
by: K B | last post by:
Hi, Is there ANY WAY to hide a row/field in a DetailsView based on meeting a condition at the ItemCreated or ModeChanging event -- or any other way? There appears not to be, but I was hoping for...
2
by: André | last post by:
Hi, I made a detailsview containing several fields for inserting only. I also made a dropdownlist which is invisible at start. Now, when clicking in a particular textbox, the dropdownlist must...
0
by: Cas | last post by:
Hi, I defined a detailsview in insertmode in the .aspx file. In the code-behind, i created 6 fields and adding them to the detailsview. Independantly of the detailsview, I use the datareader to...
3
by: Terry | last post by:
Hi, I have a button ("button1") embedded into another control ("LoginView1"). In the code-behind environment of VWD (visual web dev.), i cant' use the event button1_onclick because 'button1'...
0
by: SAL | last post by:
I have a DetailsView on one of my site's pages that is mis-interpreting a bit field as a text field. On all of the other page's in my site, the DetailsViews show this field as a checkbox but as a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.