Questions tagged [findcontrol]

A method on the Control class in the .NET framework that finds a control from its id. The control is only found if it is within the calling control's naming container.

374 questions
0
votes
2 answers

FindControl with dynamic controls

I want to find dynamic controls. Example: - In my aspx: Table Ids will be generated like: vertragstypPVN_Test1, vertragstypPVN_Test2, etc. In my aspx.cs, I…
Ragnarsson
  • 1,715
  • 7
  • 41
  • 74
0
votes
2 answers

unable to find asp checkbox by ID

I am unable to find the asp:checkbox on my asp web app using the FindControl method. I put a checkbox on my form using: In my codebehind I have the following: Control checkbox =…
heatStroke
  • 13
  • 3
0
votes
3 answers

ListView find dropdownlist in table

I have a list view with table inside and i need to get all dropdown lists and file upload controls, but find returns nothing. This is my code:
JNM
  • 1,175
  • 4
  • 20
  • 39
0
votes
1 answer

Cannot FindControl within dynamically generated table

I have a dynamically generated table and for each row in the table there a some form textboxes for the user to complete and then submit the form. The problem i'm having is accessing the values within these fields once submitted. The table has the…
Jammer
  • 2,330
  • 11
  • 48
  • 77
0
votes
2 answers

Unable to find control in gridview

I want to find the control(hyperlink) in the gridview. Based on the value of the control I want to enable or disable the hyperlink. I tried like this. But I am always getting null. protected void gridResult_RowDataBound(object sender,…
Ranjith
  • 549
  • 4
  • 10
  • 20
0
votes
1 answer

Asp.Net set control that in specific row in repeater?

repeater code:
AliRıza Adıyahşi
  • 15,658
  • 24
  • 115
  • 197
0
votes
3 answers

ASP.net, VS 2010, C# -- how to find a control on a different page?

I have a FormView on Default.aspx page. I have BLL_Census.cs class in App_Code folder. I want to set properties of textbox on FormView on Default page from BLL_Census.cs but don't know how to reference of find the FormView on the other page from…
Eric3141
  • 1
  • 1
0
votes
2 answers

Refresh the control or reload form from button click event handler on other form

I have a GridView in Liste_Form and button in Close_Form. How can I refresh the Gridview in Liste_Form, when i click the button on Close_Form? Or reload the Liste_Form.
user609511
  • 4,091
  • 12
  • 54
  • 86
0
votes
1 answer

asp.net FindControl on unbound gridview or repeater

I have some user controls that contain asp.net GridViews and Repeaters and before binding data to them, i have to run some checks. I need to know whether certain controls exist in a TemplateField or ItemTemplate. Of course i cannot do…
Tys
  • 3,592
  • 9
  • 49
  • 71
-1
votes
1 answer

FormView FindControl EditTemplate in C#

I have this in the Code Behind of a C# asp.net webforms that will not execute, transposed from a VB.NET File. The VB Webform executes it fine, finding the controls in edit mode from Pre-Render. However the C# version does not. Would someone be able…
Ajay
  • 5
  • 3
-1
votes
1 answer

How to locate checkbox in gridview / from another control on the same parent page

Attempting to use the code below to no avail - I cannot seem to locate the checkbox control. Note: the grid does return the expected number of rows. As indicated in the title I am trying to find the checkbox from another user control on the same…
David
  • 58
  • 1
  • 6
-1
votes
1 answer

Get Panel from User control in WPF

I have the Main view: then this…
Andre Roque
  • 503
  • 1
  • 9
  • 31
-1
votes
1 answer

How to Use PreviousPage.FindControl (VB.NET)

i have 2 radiobutton in page1 how to use this method in page2 ( PreviousPage.FindControl ) so that understand Which selected radiobutton in page 1
-3
votes
1 answer

C# 'FindControl' does not exist in the current context

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using…
Mcsorley78
  • 11
  • 1
  • 7
1 2 3
24
25