Solved

easy way to access controls in inserttemplate of DetailsView in asp.net?

Posted on 2009-05-05
1
313 Views
Last Modified: 2012-05-06
Hi,

I have a detailsview in insert mode.
Is there a way to access those controls (textbox,dropdownlist,) in detailsView?

Am I supposed to use FindControl with control IDs?
Thanks.
0
Comment
Question by:dkim18
1 Comment
 
LVL 39

Accepted Solution

by:
abel earned 500 total points
ID: 24304447
Yes, you need to use FindControl from within any of the row events of the Insert Row. You can find these row events from the dropdown list of the GridView and you can find the current row from the e.Row object in the event.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now