Solved

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

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

9 Experts available now in Live!

Get 1:1 Help Now