How To Get Client Added Controls back to Server

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default How To Get Client Added Controls back to Server

    Hello,

    Using Java Script I add some ListItem items to my ListBox ( or Options to my
    list box )
    when I post back I don't get anything at all
    What is going on
    originally the ListBox is empty then the Client will do something to
    populate it at runtime
    At the server I get nothing

    Please Help

    Thanks


    MS News Guest

  2. Similar Questions and Discussions

    1. XML to server to client and back!
      I'm fairly new to FMS Is it possible to load a XML file through the server to the client, edit it and resave with the server again! If it is, how...
    2. Flash Webcam client <-> client (not client <-> server<-> client)
      Dear Flash Team, supporter and regular mortals (Like myself) I am currently running a IRC chat with mostly webclients connected. We currently offer...
    3. Controls with a client side onLoad function or seting a cursor server side
      Is there any way to create a web control that calls a client side onLoad function? Its diffucilt since you are not able to access the form or...
    4. user controls: dynamiclly added child controls dont survive post back ?
      hi, i have some strange behaviour: i've created a web user control that add's some child controls (e.g: textbox, image buttons) to its control...
    5. Controls that can be added to datagrid
      hi All, Which ASP.NET controls , Html controls can be added to a datagrid control ? Shreyas
  3. #2

    Default Re: How To Get Client Added Controls back to Server

    That is by design. There is no way for the ListBox control to "know" what
    was put in on the client side. Remember only the value of the listbox is
    posted back. You will have to use hidden fields to pass the new items back
    and step through them and add them to the Items collection of the ListBox on
    postback.

    bill


    "MS News" <sql_agentman@hotmail.com> wrote in message
    news:uHSP2$4VDHA.1928@TK2MSFTNGP12.phx.gbl...
    > Hello,
    >
    > Using Java Script I add some ListItem items to my ListBox ( or Options to
    my
    > list box )
    > when I post back I don't get anything at all
    > What is going on
    > originally the ListBox is empty then the Client will do something to
    > populate it at runtime
    > At the server I get nothing
    >
    > Please Help
    >
    > Thanks
    >
    >

    William F. Robertson, Jr. Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139