为什么ListBox1.SelectedIndex的值等于-1protected void btnDeleteType_Click(object sender, EventArgs e) { if (this.lstCardType.SelectedIndex != -1) { string typeId = this.lstCardType.SelectedItem.Value; bool
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/14 06:10:07
为什么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
小溪默默地等待着
并且歌颂
——犯更多的错误,
是繁星点点
微风中,昨天在动摇并吱吱作响.
孤坟一座何处话凄凉.哈哈