我对 asp.net 和 javascript post and get 有疑问,我知道如何从连接到数据库的 asp.net 中的下拉列表中获取值,但是如何将内容发送到 asp.net 和 asp.net 将其发送回来。 ..
<div id="map" style="width: 500px; height: 500px">
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:RFIDConnectionString %>"
SelectCommand="SELECT neighborhood_name FROM [Neighborhood]"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:RFIDConnectionString %>"
SelectCommand="SELECT street_name FROM [Street]"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString="<%$ ConnectionStrings:RFIDConnectionString %>"
SelectCommand="select * from Street,neighborhood where Street_status='high' and street.neighborhood_id=neighborhood.neighborhood_id"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource4" runat="server"
ConnectionString="<%$ ConnectionStrings:RFIDConnectionString %>"
SelectCommand="SELECT neighborhood_name FROM [Neighborhood]"></asp:SqlDataSource>
</div>