简体   繁体   中英

How to use Dynamic Radio button in aspx.cs file

我已经从Java脚本创建了DYNAMIC单选按钮列表,现在我想在aspx.cs页面中使用此单选按钮列表,我该怎么办?

The server-side code will be unaware of a control dynamically created in JavaScript on the client-side. Likewise, the viewstate of the control will be invalidated if you create options in the list that aren't available at runtime.

In order to access the values in the code behind, you'll need to pass the values either with AJAX or set a hidden field value prior to postback.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM