selectedindexchanged没有开火 [英] selectedindexchanged not firing

查看:73
本文介绍了selectedindexchanged没有开火的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (DropDownList1.SelectedValue == "Installment")
        {
            RadioButtonList1.Visible = true;
            Label11.Visible = true;
            txtInsAmount.Visible = true;
        }
    }





这段代码有什么问题?它没有开火。下拉列表位于modalpopupextender中。它应该显示这3项



whats wrong in this code? It is not firing. The dropdownlist is inside a modalpopupextender. It is supposed to show this 3 items

RadioButtonList1.Visible = true;
           Label11.Visible = true;
           txtInsAmount.Visible = true;





我不能设置自动回发为true,因为它会使modalpopupextender消失。



I cant set the auto postback to true because it will make the modalpopupextender disapper.

推荐答案

将auto post back属性设置为true。 &在选定的索引更改事件中再次显示使用'show'方法弹出相同的模型
Set auto post back property to true. & in selected index changed event again show same model pop up using 'show' method


这篇关于selectedindexchanged没有开火的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆