为什么ListBox1.SelectedIndex的值等于-1protected void btnDeleteType_Click(object sender, EventArgs e) { if (this.lstCardType.SelectedIndex != -1) { string typeId = this.lstCardType.SelectedItem.Value; bool
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/01 07:52:58
![为什么ListBox1.SelectedIndex的值等于-1protected void btnDeleteType_Click(object sender, EventArgs e) { if (this.lstCardType.SelectedIndex != -1) { string typeId = this.lstCardType.SelectedItem.Value; bool](/uploads/image/z/12974291-35-1.jpg?t=%E4%B8%BA%E4%BB%80%E4%B9%88ListBox1.SelectedIndex%E7%9A%84%E5%80%BC%E7%AD%89%E4%BA%8E-1protected+void+btnDeleteType_Click%28object+sender%2C+EventArgs+e%29++++%7B++++++++if+%28this.lstCardType.SelectedIndex+%21%3D+-1%29++++++++%7B++++++++++++string+typeId+%3D+this.lstCardType.SelectedItem.Value%3B++++++++++++bool)
为什么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
小溪默默地等待着
并且歌颂
——犯更多的错误,
是繁星点点
微风中,昨天在动摇并吱吱作响.
孤坟一座何处话凄凉.哈哈