Use combobox based flexbox jquery with asp.net
I have an asp: dropdownlist filled with a stored program that I want to replace with flexbox. I can see that Flex-Flex is expecting json based content on it. Any pointers how to replace my code for this?
<asp:DropDownList ID="StepDropDown" runat="server" AutoPostBack="True" DataSourceID="SteppingDataSource" DataTextField="Name" DataValueField="S_ID" OnSelectedIndexChanged="StepDropDown_SelectedIndexChanged" />
<asp:SqlDataSource ID="SteppingDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:PerfMonConnectionString %>" SelectCommand="GetSteppings" SelectCommandType="StoredProcedure" />
Thanks in advance for your help!
a source to share
The replacement won't be trivial. There are two big hurdles: (1) FlexBox uses AJAX to access Json data, not some traditional data binding as shown in your code example (2). You will need to convert the data to Json format.
If you are interested in a sample, you can find it here that demonstrates how to make a FlexBox in a div, communicate with an HTTPHandler (not an .ASPX file) to get data, and there is a very simple data access layer that writes Json data.
The replacement is doable (I did it), but it's not a slamdunk.
a source to share