Ask a Question related to ASP.NET General, Design and Development.
-
S. Justin Gengo #1
Re: get formvalues - dynamically created controls
C.H.,
You could loop through them using their index. Instead of using FindControl
and the control's name you could just use the index of the control (as long
as you know what kind of control it is it would work just fine).
Dim MyTextBox As TextBox =
CType(MyRepeater.Items(0).Controls([ControlLoopHere]), TextBox)
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Christian H" <no@name.no> wrote in message
news:O1kz$zlWDHA.888@TK2MSFTNGP10.phx.gbl...0> Hi!
>
> I have a form with x dynamically created formfields. I have named them
> "question_x". I also have a hidden field named "numb" which contains the
> number of formfields I have on my page. That way I could loop through formis> to x, and get values of all formfields.
> Now, these formfields are inside of a repeater, and because of this, they
> have been given strange names.
> Instead of "question_x" they are now called
> "ctl_something_something_question_x".
>
> Is there a way to force my formfields to be named exactly what I want, or> there something else I can do in order to get the values?
>
> C.H
>
>
S. Justin Gengo Guest
-
Eventhandling from dynamically created controls
I have some questions reguarding event handling of dynamically added controls. An example scenario (se code below): I have one button declared... -
Dynamically created user controls
In ASP.Net, I am working with some in-house software that dynamically creates a form based on rows in a database table. For example, most pages... -
Access dynamically created controls
Hi there, I read a lot about this issue but still got no clear answer that solves my problem. I've a Web User Control with a placeholder called... -
Referencing Dynamically created controls
Can anyone tell me how to reference a a control, e.g. a control I have added to the controls collection without specifically naming it. Also can... -
retrieving values from dynamically created controls
Hi, Someone please clear this for me! I display a bunch of button controls on a page dynamically, adding them to a placeholder control in my...



Reply With Quote

