|
-
Jun 8th, 2012, 11:31 AM
#1
Thread Starter
Frenzied Member
Accessing Dynamically created server controls, server-side.
Ok, so I'm dynamically adding <input type="File" />'s to the page via button click, client-side via Javascript.
Now when I click the upload button I can access the PostedFiles server side, but I also have radio button lists that I've created dynamically as well with no runat="server".
If I were to .setAttribute("runat","server") for the radio lists I create, is there a way to access that client-side created server control, from the server side?
Thanks,
Justin
-
Jun 8th, 2012, 11:36 AM
#2
Thread Starter
Frenzied Member
Re: Accessing Dynamically created server controls, server-side.
I was thinking about adding an asp:radiobuttonlist to the page initially along with a hidden field. And when I change any of the selections, update the value of the hiddenfield to reflect the types (what's avail. to select in the lists) chosen.
For example.
If I have picked 3 different files to upload and have chose 'Generic', 'Type1', 'Type2' respective of the order that the lists are added to the page.
Then the hidden field's value would be "1;2;3" to reflect the DB id of the type.
Does that sound like a reasonable approach?
Thanks again!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|