Results 1 to 2 of 2

Thread: Accessing Dynamically created server controls, server-side.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2008
    Location
    Texas
    Posts
    1,288

    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
    You down with OOP? Yeah you know me!
    MCAD and MCMICKEYMOUSE (vb.net)

    ----

    If it even kinda helps... rate it : )

    Edit a Multi-page .tif file and save.

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2008
    Location
    Texas
    Posts
    1,288

    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!
    You down with OOP? Yeah you know me!
    MCAD and MCMICKEYMOUSE (vb.net)

    ----

    If it even kinda helps... rate it : )

    Edit a Multi-page .tif file and save.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width