.net中Dropdownlist绑定数据后怎么获得其数据的主键ID?
<asp:DropDownList ID="TypeName" runat="server" DataSourceID="SqlDataSource1" DataTextField="TypeName" DataValueField="TypeName">
</asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:digitalConnectionString %>"
SelectCommand="SELECT [TypeName], [ProductTypeID] FROM [ProductType]"></asp:SqlDataSource>
我想获取ProductTypeID然后填入另一个表
请教高手?