findcontrol Questions

4

Solved

I am trying to contol a buttons state depending on a relevant text box. The names are the same other than the prefixes. The text boxes and buttons are located in a table on the page. <asp:Table...
Later asked 7/4, 2015 at 9:34

4

Solved

Existed MyControl1.Controls.OfType<RadioButton>() searches only thru initial collection and do not enters to children. Is it possible to find all child controls of specific type using Enumer...
Chuckwalla asked 5/2, 2010 at 19:36

9

Solved

I have a complex asp.net form,having even 50 to 60 fields in one form like there is Multiview, inside MultiView I have a GridView, and inside GridView I have several CheckBoxes. Currently I am usi...
Prostyle asked 10/2, 2011 at 10:13

7

Solved

On one site, I'm only using a single level Masterpage and in a page using that master, I can do this.Master.FindControl("controlName") to access the control. Works fine. However, using the same co...
Revolution asked 16/10, 2009 at 13:53

7

Solved

How does FindControl method works if I need to find any Control which is inside GridView Template, more specifically ItemTemplate? I have a hyperlink but it is not able to find the same. Question...
Coffeng asked 29/7, 2011 at 13:34

8

Solved

I was wondering how one would find the controls in the HeaderTemplate or FooterTemplate of an Asp.Net Repeater control. I can access them on the ItemDataBound event, but I was wondering how to get...
Ream asked 31/3, 2009 at 15:0

4

Solved

I have an ASP.NET site that I am trying to access div elements by their ID from the C# code behind file. Essentially I want to see if a div element exists, and if so, alter its properties. I've fo...
Seismology asked 10/7, 2012 at 15:41

3

Solved

I have to find a Control in an aspx page bound to a master page. The master page contains: <asp:ContentPlaceHolder ID="MainContent" runat="server"/> The content page contains: <asp:C...
Nun asked 15/9, 2010 at 18:25

7

Solved

I have used FindControl in the past, prior to .NET 2.0/3.0. It seems like now, for some reason, the ID's of my controls get a funky named assigned. For example I assigned an id "cbSelect" to a chec...
Archerfish asked 28/4, 2009 at 20:21

5

Solved

I have a Literal control that I am trying to locate so I can insert text into it. I have a Master page that contains several content placeholders. <asp:Content ID="Content7" ContentPlaceHolder...
Quiddity asked 16/9, 2010 at 21:34

6

Solved

I have the a ListView like this <asp:ListView ID="ListView1" runat="server"> <EmptyDataTemplate> <asp:Literal ID="Literal1" runat="server" text="some text"/> </EmptyDataTem...
Quadratic asked 5/3, 2009 at 1:28

5

Solved

Good day everyone, I am building a page in ASP.NET, and using Master Pages in the process. I have a Content Place Holder name "cphBody" in my Master Page, which will contain the body of each Page...
Creedon asked 29/6, 2009 at 20:44

5

I want to have a DropDownList in the header of my GridView. In My codebehind I can't seem to access it. Here is the HeaderTemplate: <asp:TemplateField SortExpression="EXCEPTION_TYPE"> <H...
Jonme asked 5/3, 2009 at 18:24

2

Solved

I have looked over the pages on the site, but cant seem to find something general enough for my problem, so was hoping someone knows what to do. I am debugging some code someone else wrote and am h...
Saiff asked 12/11, 2012 at 0:3

5

Solved

Hi i have few a single textbox within the the datatemplate for itemscontrol. When i bind the itemcontrols to a observable collection i get two text boxes. But i need to do some manipulations based ...
Interlude asked 11/6, 2009 at 9:15

3

Solved

I have two methods. The first creates one table dynamically, and I add that table into a PlaceHolder. private void generateData(){ Table tbl = new Table(); tbl.ID = "table1"; holder_info.Contro...
Passel asked 22/8, 2012 at 15:54

2

Solved

In my ListView I have an ItemTemplate and EditItemTemplate which look something like this, respectively. -------> When I click the "Edit" button, and it switches to the EditItemTemplate view on...
Nailhead asked 24/1, 2012 at 21:6

2

Solved

I currently have a dropdown inside an ascx control. I need to "find" it from within the code behind on another ascx that is on the same page. It's value is used as a param to an ObjectDataSource on...
Bestow asked 31/12, 2009 at 23:2

3

Solved

I'm developing a simple Wedding List application, where guests can reserve the present they want to buy for the bride and groom. The Reserve page wraps a few fields inside a couple of panels, all w...
Pennell asked 21/10, 2009 at 22:9

3

Solved

I'm sorry, but I can't understand why this doesn't work. After compile, I receive a "Null reference exception". Please help. public partial class labs_test : System.Web.UI.Page { protected ...
Minstrelsy asked 22/9, 2009 at 0:27

2

Here the code behind... I'm trying to retrieve this control so I can add items to the drop down list (I'm retrieving the Role Groups to add to the drop down list in the code-behind) Protected Sub ...
Rearmost asked 24/6, 2009 at 15:39
1

© 2022 - 2024 — McMap. All rights reserved.