易截截图软件、单文件、免安装、纯绿色、仅160KB

.net中XML文件作为数据源的操作类

不解释了,自己看代码吧.......................
using System;
using System.Text;
using System.Data;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Xml;
namespace Gogofly.CommonOperation
{
 /// <summary>
 /// 数据类型转换
 /// </summary>
 public class DataTypeConvert
 {
  #region 数据类型转换
  public DataTypeConvert(){}
  /// <summary>
  /// 字符串转换为整数
  /// </summary>
  /// <param name="value"></param>
  /// <returns></returns>
  public static int ConvertToInt(string value)
  {   ///数据为空,返回-1
   if(string.IsNullOrEmpty(value))return -1;
   int result = -1;
   ///执行转换操作
   Int32.TryParse(value,out result);
   return result;
  }
  /// <summary>
  /// 字符串转换为时间
  /// </summary>
  /// <param name="value"></param>
  /// <returns></returns>
  public static DateTime ConvertToDateTime(string value)
  {   ///定义初始化值
   DateTime result = DateTime.Parse("1900-01-01");
   if(string.IsNullOrEmpty(value)) return result;
   ///执行转换操作
   DateTime.TryParse(value,out result);
   return result;
  }
  /// <summary>
  /// 字符串转换为实数
  /// </summary>
  /// <param name="value"></param>
  /// <returns></returns>
  public static decimal ConvertToDecimal(string value)
  {   ///定义初始化值
   decimal result = 0.0M;
   if(string.IsNullOrEmpt


相关文档:

Use the XML Parser in OS 9.x


Paul.Todd | 09 April, 2007 15:24
I have noticed a couple of people seem to be having problems with using the XML parser in Symbian and there are no examples outside of the devkit. The parser I will be talking about is the xml one, not the one SOAP engine as the SOAP one is Nokia specific.
The ke ......

xml 安装bug

[Bug 230608] missing config.h in latest -14
Ralf Corsepius rc040203 at freenet.de
Tue Mar 6 13:31:13 UTC 2007
Previous message: [Bug 230608] missing config.h in latest -14
Next message: [Bug 230608] missing config.h in latest -14
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] ......

XML HTTP Request的属性和方法简介 ASP编程教程

由于现在在公司负责制作标准的静态页面,为了增强客户体验,所以经常要做些AJAX效果,也学你也和我一样在,学习AJAX。而设计AJAX时使用的一个重要的技术(工具)就是XMLHTTPRequest对象了。这里海啸把我学习XMLHTTPRequest对象的一点资料拿出来跟大家一起分享。文中的资料都是海啸在学习时在网上收集的,如果您开过,那就再 ......

VC解析XML 使用CMarkup类解析XML

 
 
(一) 先讲一下XML中的物殊字符,手动填写时注意一下。
字符                   字符实体
&                 &n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号