Solved

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

Posted on 2009-05-05
1
317 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Gridview alignment 1 20
ASP.net Show "please wait " message as page loads 2 42
Why does my excel data start at B1 instead of A1. 9 85
Save ms data to server side. 19 46
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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