Items not added to ListBox after using jQuery .appendTo

后端 未结 2 519
广开言路
广开言路 2021-01-26 11:35

Preface: First time really using JavaScript + jQuery, so my problem likely stems from a lack of understanding.

I have some very simple Javascript to move elements from o

2条回答
  •  难免孤独
    2021-01-26 12:31

    If you are using asp.net I believe this is because you are not manipulating the viewstate, and this is important to the asp.net server on the postback to render.

    I would suggest simply using an UpdatePanel to wrap your controls. Asp.net has great Ajax type functionality built in already, no full postback necessary. Their logic controls all the name mangling and viewstate.

提交回复
热议问题