Ask a Question related to ASP.NET General, Design and Development.
-
OguzhanF #1
dynamic controls and accessing their text values
I have a list box of products a coffee machine has to
produce, that the user
can choose from. After they do their selection of
products, into a panel
control i dynamically create textboxes with id's text1,
text2 ....
i need to read in the values entered in the text boxes.
when i try to access the textboxes with the following code
from MSDN, it
tells me the "Object reference not set to an instance of
the object. "
dim lbl as label
lbl = ctype(panel1.findcontrol("text1"), Label)
'error on this line
lblSomething.text=lbl.text
I can see the text1 dynamic control on the page, but
cannot access its text
property, any help is appreciated thanks in advance...
OguzhanF Guest
-
Finding the values of Dynamic Controls in a Composite Control
Hi Everyone, I've created a Custom Composite Control that creates a number of children -- Hidden Input Fields, to be exact. Because my control... -
Accessing Textbox Text After Postback in Dynamic Control
I have an aspx page, which loads a custom usercontrol (UCtrlA). UCtrlA has a drop down list, and depending on what is selected in UCtrlA's drop... -
Accessing Property values in create child controls sub
Can I read a control a property within the createcontrols sub and use it there. I am trying to read a value from an XML file to determine what... -
Accessing values of child controls after postback
Hi! I have a placeholder to which i add a Table with 2 columns. In one of the columns are textboxes with an unique ID (box1, box2, .... boxN).... -
Specifying dynamic default values for properties in custom controls:
Hey guys, I have a custom int property in my control whose default value is dynamic, so I cannot specify a "DefaultValue" attribute. However, I...



Reply With Quote

