我知道用substring() 这个方法会出错, 但是为什么我加了 try catch 还是出错呢按道理是当出错的时候, 执行catch{} 才对啊, 而现在却出现页面错误public string GetMoney(string pMoney)
{
try
{
return pMoney.Substring(0,pMoney.Length-2);
}
catch
{
return string.Empty;;
}
}
{
try
{
return pMoney.Substring(0,pMoney.Length-2);
}
catch
{
return string.Empty;;
}
}
解决方案 »
- visual studio 2008制作网络考试系统
- 求linq to sql ,linq to entity实例,最简单的实现增加,删除,修改的就行
- 在ASP.NET网站中,能实现对串口数据的接收吗?
- Between 开时间 and 结束时间 这样的语句差的出来吗
- asp.net sql2000 远程连接 出现错误
- 差分字符串为数组
- asp.net中创建一个连接数据库的vb类
- 頁面page_load是就得到本周開始的時間和結束的時間
- 怎么改变上传图片的大小(散分啦)
- 使用服务器端的控件,如何得到客户端的代码?
- 小问题急,马上揭贴。
- 问一个setTimeout() javascript函数问题
{
Response.Write(ee.Message());
return string.Empty;;
}