ASP.NET JSON Binding data with RadiobuttonList

Posted by user1385570 on Stack Overflow See other posts from Stack Overflow or by user1385570
Published on 2012-06-10T22:15:35Z Indexed on 2012/06/10 22:40 UTC
Read the original article Hit count: 149

Filed under:
|
|

I'm trying to bind JSON data into the RadioButtonList on client side. I know how to do the in code behind, it works fine. Someone please provide more details, How do I bind the JSON data RadioButtionList in VB.NET.

rblregions.DataTextField = "Value"
rblregions.DataValueField = "Key"
rblregions.DataSource = items

The data looks like: [regions:{regionID:US,regionName:USA}]

main.aspx

<asp:RadioButtonList ID="rblregions" runat="server">

$.getJSON("Map/loadMySites.aspx?" + query,
    function (data) {
        if (data.regionid && data.region) {
            //I want to bind the data here with RadioButtonList
        }

    }
);

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ASP.NET