解决方案 »
- 想写一个压缩图片大小的小程序,求思路
- 各位,我这个问题弄了很久都没有解决,大家帮忙看下,谢了!
- 驱动器中 的文件信息
- 如何把一个十六进制的信息存储到byte数组中
- Response.Write("<js>window.open('./chaxunjieguo.aspx?sql=" + sql + "');</js>");传值问题,在线等,急~~
- 统计一下现在各位都用什么做报表(不用rmb买的)?
- VS中新建的组件类和新建类(一般类)有什么区别吗?
- release模式下出现错误。
- C#如何向现有程序跟远端的TCP连接发送数据包?
- 关于crystal report中的刷新问题,始终搞不明白,请赐教,特别急
- 如何截取一段字符串碰到第一个非汉字的字符的时候停止截取
- 截取一个字符串只要碰到第一个非汉字的字符的话后面的所有字符就都不截取了 这个正则表达式怎么写啊
http://msdn.microsoft.com/zh-cn/library/system.web.ui.webcontrols.gridviewdeletedeventargs(v=vs.80).aspx
void CustomersGridView_RowDeleted(Object sender, GridViewDeletedEventArgs e)
{ // Use the Exception property to determine whether an exception
// occurred during the delete operation.
if (e.Exception == null)
{
// Use the AffectedRows property to determine whether the
// record was deleted. Sometimes an error might occur that
// does not raise an exception, but prevents the delete
// operation from completing.
if (e.AffectedRows == 1)
{
Message.Text = "Record deleted successfully.";
}
else
{
Message.Text = "An error occurred during the delete operation.";
}
}
else
{
// Insert the code to handle the exception.
Message.Text = "An error occurred during the delete operation."; // Use the ExceptionHandled property to indicate that the
// exception is already handled.
e.ExceptionHandled = true;
}
}