标签:
<asp:TableCell>
<ig:WebDropDown runat ="server" ID="txtClassNo" Width ="200" OnSelectionChanged="webDropdownOnchange" EnableClosingDropDownOnSelect="true" AutoPostBack="true" ></ig:WebDropDown>
</asp:TableCell>
/// <summary>
/// 分类编码下拉框选择自动带出分类名称
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void webDropdownOnchange(object sender,DropDownSelectionChangedEventArgs e)
{
WebDropDown wdd = sender as WebDropDown;
IdioSoft.Common.Method.DbSQLAccess objDbSQLAccess = new DbSQLAccess(SqlCon);
string sql = "select ClassName from DB.dbo.T_Class where ClassNo=‘" + wdd.SelectedValue + "‘";
txtClassName.Text=objDbSQLAccess.funString_SQLExecuteScalar(sql);
}
标签:
原文地址:http://www.cnblogs.com/xuemoing/p/5954127.html