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

asp.net c# 数据库备份

protected void btnsearch_ServerClick(object sender, EventArgs e)
    {
        string lujing=this.Text2.Value.ToString().Trim();
        string shujuku = this.jine.Value;
        string wenjianming = this.Text1.Value.ToString().Trim();
        if (wenjianming.IndexOf(".bak") == -1)
        {
            Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "<script>alert('备份文件名格式错误!');</script>");
            return;
        }
        if (System.IO.File.Exists(lujing))
        {
            //则表示存在
        }
        else
        {
            //创建该文件夹 
            System.IO.Directory.CreateDirectory(lujing);
        }
        string wenjj = lujing + @"\" + wenjianming;
        if (System.IO.File.Exists(wenjj))
        {
            Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "<script>alert('备份文件名已存在,请重新命名!');</script>");
            return;
        }
        string cmd1 = "backu


相关文档:

C#与Flash交互

C#与Flash交互 (转自小磊在线)
C#与Flash交互
前段日子公司要求做一个C#与Flash交互的东西,用来C#与短信猫通讯将数据传到Flash上显示与操作的应用。
第一步C#添加组件
打开VS2005-工具-选择工具箱项-COM组件-选择Shockwave Flash Object-确定
添加好组件往场景上拖放,如果提示注册需求注册
c# 注册控件-在运行输 ......

asp.net Request.ServerVariables 各参数说明集合

Request.ServerVariables["Url"]
返回服务器地址
Request.ServerVariables["Path_Info"]
客户端提供的路径信息
Request.ServerVariables["Appl_Physical_Path"]
与应用程序元数据库路径相应的物理路径
Request.ServerVariables["Path_Translated"]
通过由虚拟至物理的映射后得到的路径
Request.ServerVariables ......

C#中调用mysql存储过程出现的问题

在root账号中,可以正常调用存储过程.
换到common_user账号时,同一存储过程名调用出现问题.
追踪调试时出现:
SELECT command denied to user 'common_user'@'localhost' for table 'proc'
搜索解决方案:
MySqlConnection myconnection = new MySqlConnection("server=localhost;user id=common_user; password=***;dat ......

C#将空值传入到Oracle字段类型为Datatime的字段

今天做项目的时候,将null传入Oracle的表中,就是不成功
经过尝试得出了两个解决方案:
1.传入OracleDateTime.NULL
2.Nullable<DateTime> optime = DBNull.Value; 传入optime(开始网上找的答案是Nullable<DateTime> optime = null发现还是会报错) ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号