真爱无限的知识驿站

学习积累技术经验,提升自身能力

c#获取和设置网卡ip/dns等信息

      

  #region 设置ip信息到网卡
        private void btnSettingNetwork_Click(object sender, EventArgs e)
        {
            ConfigFile cf = ConfigFile.Instanse;
...

asp.net利用swfupload进行批量上传

 vs2010代码:asp.net利用swfupload批量上传.zip 效果: 

ashx处理文件处理下载文件问题

新建一般处理程序 ,改下面的函数:

        public void ProcessRequest(HttpContext context)
        {
            string filename;
...

关于session超时、网址里有未知字符的问题

   session本来是个不稳定的东西,经常会被丢失,本来用cookie不错,但又不想对程序做改动。查了查资料,找到了下面一段:

     由于Asp.net程序是默认配置,所以Web.Config文件中关于Session的设定 默认的是下面这个:运行后后面会自动加一串字符 ,不好看,

...

asp.net发送邮件代码

      今天测试了gmail的邮箱能发出去,其它的我测试是发不出去。

  #region 发送邮件的函数
        /// <summary>
        /// 发送邮件函数Gmail
...

asp.net 中显示文件夹下的文件,并有链接地址的例子

using System;
using System.Configuration;
using System.Data.SqlClient;
using System.IO;
using System.Web;

 

   protected void Page_Load(object sender, EventArgs e)
...

.Net Global.asax、伪静态等功能实现

//第一种方法,Global文件重写

 protected void Application_Start(object sender, EventArgs e)
       {
...

DataSet与Xml文件之间的转化、对XML的基本操作

        #region xml文件内容转化为DataSet
        /// <summary>
        /// xml文件内容转化为DataSet
        /// </summary>
...

C++/c#修改hosts文件

#include<iostream>
#include<fstream>
#include <WTypes.h>
#include <Winbase.h>
using namespace std;
int main()
{
ofstream outf;
char * lpFileName="C:\Windows\System32\drivers\etc\hosts";
...

C#中npoi操作Excel[版本1.2.1读写2003格式]

//npoi操作Exce的测试(你的Excel文件必须在运行程序的电脑(服务器)上,网站中尤其要注意这点)

//先引用npoi的dll文件

//用到的dll下载地址: npoidll.zip
...

<< < 4 5 6 7 8 9 10 11 12 13 > >>

Powered By Z-BlogPHP 1.7.3

Copyright 2024-2027 pukuimin Rights Reserved.
粤ICP备17100155号