今天在开发过程中遇到SqlDbType.Decimal类型的参数,返回值却是没有小数位的整数值,郁闷坏了。查了半天资料,原来需要指定小数位。具体书写如下:
cmd.Parameters.Add("@Percent", SqlDbType.Decimal).Direction = ParameterDirection.Output;
cmd.Parameters["@Percent"].Precision = (byte)18; &nbs阅读全文>
发表于 @ 2008年07月11日 15:43:00|评论(loading...)|收藏
如果需要异步调用webservice,那么在页面<%@ Page Language="C#" AutoEventWireup="true" Async="true" %>就需要加上Async="true"阅读全文>
发表于 @ 2008年07月04日 15:21:00|评论(loading...)|收藏