Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 21st, 2006, 10:36 AM
Friend of Wrox
Join Date: Apr 2006
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to get a fieldID of a detailsvie in jscript


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 .../>
<asp:BoundField DataField="pcnr" HeaderText="pcnr" etc ...
<asp:BoundField DataField="pcnr" HeaderText="pcnr" etc ...

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

Thanks again

Similar Threads
Thread Thread Starter Forum Replies Last Post
JScript DumAss HTML Code Clinic 1 August 25th, 2004 02:46 AM
submit using jscript alyeng2000 ASP.NET 1.0 and 1.1 Basics 3 June 14th, 2004 07:38 AM
how to debug jscript alyeng2000 ASP.NET 1.x and 2.0 Application Design 4 May 22nd, 2004 05:13 AM
JScript Des67 Javascript 1 July 28th, 2003 05:05 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.