您的位置:首页 > 其它

Ext.Net 1.x_Ext.Net.Combox选择触发事件

2012-05-24 08:34 435 查看
事件:ChangeCurrency

<DirectEvents>
       <Select  OnEvent="ChangeCurrency"></Select>
 </DirectEvents>

cs代码:

protected void ChangeCurrency(object sender, DirectEventArgs e)
    {
     
        if (this.cbxCurrency.SelectedItem.Value.Trim() == "RMB")
        {
            this.txtRate.Text = "1.000000";
        }
        else
        {
            ZMQuotation zmq = new ZMQuotation();
            zmq.Currency=this.cbxCurrency.SelectedItem.Value.Trim();
            ZMQuotationManager zmqm=new ZMQuotationManager ();
            this.txtRate.Text =zmqm .GetRate(zmq);
        }
    }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: