So, I've been battling with this problem for 2 days now, and I need your help.
What I'm trying to do is the following: I have an HTML form that I need to load dynamically at run time. The HTML code looks something like this:
<form name="form1" method="post" action="action goes here." id="Form1">
<input type="hidden" name="x" VALUE="asdasdasd">
<input type="hidden" name="y" VALUE = "asdasdasd">
<input type="hidden" name="z" VALUE="asdsad">
other tags go here
</form>
I have a lot of forms like the above, and I need to load them dynamically without changing anything
So I tried to put them in a User Control, and each input was turned into a TextBox, and depending on a specific criteria, I load the correct form (user control). That turned to be wrong, since the ID and NAME are changing.
ASP.NET is inserting "dynamic" ID and NAME for each one.
I need a way to load that form at runtime without changing anything. I forgot to mention that values are populated from a database, that's why I chose the Textbox way.
Any ideas fellas? I even thought about inheriting from upper classes that, for example, textbox is derived from.
Question
Bazenga
So, I've been battling with this problem for 2 days now, and I need your help.
What I'm trying to do is the following: I have an HTML form that I need to load dynamically at run time. The HTML code looks something like this:
I have a lot of forms like the above, and I need to load them dynamically without changing anything
So I tried to put them in a User Control, and each input was turned into a TextBox, and depending on a specific criteria, I load the correct form (user control). That turned to be wrong, since the ID and NAME are changing.
ASP.NET is inserting "dynamic" ID and NAME for each one.
I need a way to load that form at runtime without changing anything. I forgot to mention that values are populated from a database, that's why I chose the Textbox way.
Any ideas fellas? I even thought about inheriting from upper classes that, for example, textbox is derived from.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts