【XX】用户控件中自定义事件无法触发的问题
/***************************************************
* 模块名称: 常数绑定下拉列表框
* 创建人: 叶明
* 创建日期: 2007-05-17
* 涉及数据表: SystemConst
* 最后修改人:
* 最后修改日期:
* 修改记录:
***************************************************/
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Microsoft.Practices.EnterpriseLibrary.Data; //引用微软企业库
public partial class Dep3Sheet_CustomControls_ConstBindDropDownList : System.Web.UI.UserControl
{
Database db = DatabaseFactory.CreateDatabase( "TedaBusMIS ");
public delegate void SelectIndexChangedHandler(object sender, SelectedChangedEventArgs e);
public event SelectIndexChangedHandler SelectIndexChanged;
public class SelectedChangedEventArgs : EventArgs
{
private string _selectedText;
public string SelectedText
{
get { return _selectedText; }
}
private string _selectedValue;
public string SelectedValue
{
get { return _selectedValue; }
}
public SelectedChangedEventArgs(ListItem item)
{
_selectedText = item.Text;
_selectedValue = item.Value;
}
}
protected virtual void OnSelectIndexChange(SelectedChangedEventArgs e)
{
if (SelectIndexChanged != null)