为什么ListBox1.SelectedIndex的值等于-1protected void btnDeleteType_Click(object sender, EventArgs e) { if (this.lstCardType.SelectedIndex != -1) { string typeId = this.lstCardType.SelectedItem.Value; bool

来源:学生作业帮助网 编辑:作业帮 时间:2024/10/08 15:17:34
为什么ListBox1.SelectedIndex的值等于-1protected void btnDeleteType_Click(object sender, EventArgs e)    {        if (this.lstCardType.SelectedIndex != -1)        {            string typeId = this.lstCardType.SelectedItem.Value;            bool
xV}k@*L.Kvt*\rmYUSԩVZE}ɥE\"xwr=M{jZj ΋2>^ƓiR(sD۱pZA\`Z\D!nYT{ˡG%݌,yM>p؆C3h.vBi\2\HM'Ts ~e#lGӡ!R `ބ0}&ta";K{F͛͌2ly\0{,lmmF<dGȺpՂC?1 ףFy7~srk3\[5Cގ:N>L#QFyZh519XuvY8prvpA6wmFLrCHT98!)}l~~5Bc5w7ʆ/O65W"ƻC}Z t aumͫ/lvд14Su̠q oy [.UC5kR7twJc ;G+d0KW"eaY@RA&Ѐ@U8J" .fdȟ)%,rЋ"Ǵ/^u/nn|/.޸U~&'f2jJv_|ָZXz9UC )%K+֊&>-;<.3I~2&37y2?K{Zef@ܥ

为什么ListBox1.SelectedIndex的值等于-1protected void btnDeleteType_Click(object sender, EventArgs e) { if (this.lstCardType.SelectedIndex != -1) { string typeId = this.lstCardType.SelectedItem.Value; bool
为什么ListBox1.SelectedIndex的值等于-1

protected void btnDeleteType_Click(object sender, EventArgs e)

    {

        if (this.lstCardType.SelectedIndex != -1)

        {

            string typeId = this.lstCardType.SelectedItem.Value;

            bool deleteCardtype = CardManager.DeleteCardTypeByCardTypeId(typeId);

            if (deleteCardtype)

            {

                DispalyCardPrice();

            }

        }

        else

        {

            Page.ClientScript.RegisterStartupScript(this.GetType(), "OK", "<script>alert('删除失败!');</script>");

        }

    }

怎么只能输入1000个字符,我一个处理方法都不止1000个字符了

为什么ListBox1.SelectedIndex的值等于-1protected void btnDeleteType_Click(object sender, EventArgs e) { if (this.lstCardType.SelectedIndex != -1) { string typeId = this.lstCardType.SelectedItem.Value; bool
小溪默默地等待着
并且歌颂
——犯更多的错误,
是繁星点点
微风中,昨天在动摇并吱吱作响.
孤坟一座何处话凄凉.哈哈