在公路上爬行

jiang's blog

Subscribe to RSS feed

Posts tagged with "asp.net"

[收藏]EventLog出错

,

使用SmtpMail类通过需要用户名和密码的smtp server发送邮件

asp.net 1.1支持

使用MailMessage.Fields属性可以实现要求:

message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", userName);
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", userPassword);

[tips]

, ,

asp.net 1.1 中的RangeValidator控件,当类型为Double事,会使用正则表达式进行格式验证,再使用parseFloat进行转换,在对于较大的数时(我用到的是:922337203685477.5807,sql server 2000中money的最大值),尾巴被吃掉了。我输入:922337203685477.5808。这个数被转换为了:922337203685477.5,导致后台的出错。