- 博客(22)
- 资源 (1)
- 收藏
- 关注
原创 传输GZIP格式,解压缩
import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.IOException;import java.util.zip.GZIPInputStream;import java.util.zip.GZIPOutputStream;public class GZIPUtils { public static final String GZIP_ENCODE_UTF_8.
2021-04-29 16:56:21
171
原创 Post请求接口,参数以json方式,SHA256计算加密
Post请求接口,参数以json方式,SHA256计算加密 /// <summary> /// 单点登陆 /// </summary> /// <param name="context"></param> public void DDLogin(HttpContext context) { try { //APIKey var a.
2021-04-29 16:50:32
1198
原创 调用接口,获取Http响应状态码
public void HttpPostWebService() { //接口调用地址 string strUrl="http://192.168.0.80:8080/DLCommonFunIF/IF00001.asmx/GetCustomer"; //接口传值参数 string paramData="Customer_ID=1&DeleFlg=0"; Http..
2020-11-04 16:45:02
2870
原创 动态生成静态网页
public void MakeHtml(){try {//动态页面网址 string strUrl = "https://www.psacloud.com/product/Detail/Default.aspx?ContentID=123";//要存放静态网页的路径 string filePath = "/product/";//物理完整路径 string toFileFullPath = HttpConte.
2020-11-03 23:35:33
784
原创 Post 调用接口,带SSL验证
<%@ WebHandler Language="C#" Class="Apply" %>using System;using System.Web;using System.Configuration;using System.Net;using System.Text;using System.Web.SessionState;using System.IO;u...
2020-05-08 17:23:28
1072
原创 提取HTML中P标签及内容
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>取得所有p标签及内容</title&g...
2020-05-08 17:06:28
2459
原创 导出带有图片的EXCEL
需要引用Aspose.Cells.dll,这个可以在网上下载using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Aspose.Cells;using As...
2019-10-25 09:05:52
1532
原创 将导出的EXCLE转化成图片格式
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Aspose.Cells;using Aspose.Cells.Drawing;using Aspose...
2019-10-23 13:56:30
811
1
原创 js post提交用base64加密和后台解密,防止重要参数值被抓包
前端代码如下:<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></tit...
2019-08-05 10:33:05
1182
原创 数据库两种验证链接方式
第一种:server = 服务器名称 / 数据库的实例名 ; uid = 登录名 ; pwd = 密码 ; database = 数据库名称server:用于指定要访问数据库的数据库实例名,服务器名称可以换成 IP 地址或者数据库所在的计算机名称,如果访问的是本机数据库,则可以使用“.”来代替,如果使用的是默认的数据库实例名,则可以省略数据库实例名。例如连接的是本机的默认数据库,则可以写成“s...
2019-07-24 14:51:54
3226
原创 网站WebSite如何添加WebAPI
一: 在网站下添加一个全局文件Global.asax,WebApplication1是WebApiConfig.cs的命名空间名称<%@ Application Language="C#" %><script runat="server"> void Application_Start(object sender, EventArgs e) {...
2019-06-12 16:13:54
1414
原创 动态创建图片批量上传(用到了百度编辑器插件)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UploadImages.aspx.cs" Inherits="Test_UploadImages" %><!DOCTYPE html><html><!--<![endif]-->&a
2018-06-25 17:21:28
387
原创 用Post和Get方法调用接口
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using huahaocms.com.CORE;using huahaocms.com.DbHelper;using...
2018-06-06 16:27:09
5076
原创 百度自定义分享,带分享次数
<!DOCTYPE html><!--[if lt IE 7]><html class="ie ie6 lt8 lt9 lt10"><![endif]--><!--[if IE 7]><html class="ie ie7 lt8 lt9 lt10"><![endif]--&
2018-05-21 17:16:10
729
原创 自定弹窗样式表popDrag.css
body{margin:0} .popBox { width:500px; -webkit-border-radius: 0.5em; -moz-border-radius: 0.5em; border-radius: 0.5em; ...
2018-05-18 14:49:34
370
原创 自定义弹窗PopDrag.js
if (!Function.prototype.bind) { Function.prototype.bind = function (o, args) { var _self = this; return function () { return _self.apply(o, [].concat(args)); };...
2018-05-18 14:48:25
439
原创 自定义弹窗
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>可拖动的弹出框</title&g
2018-05-18 14:30:15
328
原创 网站飘窗效果
<html xmlns="http://www.w3.org/1999/xhtml"><body><div id="img1" style="z-index: 999; border: 1px solid rgb(204, 204, 204); background-color: white; position: absolute; top: 29px; lef...
2018-04-28 16:49:24
7168
1
原创 .net 数据库链接
.net初学之ADO.NET_sqlserver两个命名空间:1. System.Date 2. System.Date.sqlClient 数据库连接的两种方式1.断开式连接(取大量值) 不需要open和close,数据库直接把数据给程序中的数据集2.打开式连接 需要open和close 程序要用open、close连接数据库 3
2017-12-13 18:22:37
483
原创 .net初学之文件流读写
1.命名空间 System.IO2.五句创建及完成读写操作句子 FileStream myfs = new FileStream(path,FileMode.Open);//创建读写流,path为路径 StreamWriter mysw = new StreamWriter(myfs);//创建读写器 //StreamReader mysr
2017-12-13 18:12:38
376
原创 导出Excel(.NET 代码)
需要引用的DLL文件:Aspose.Cells.dll,Aspose.Pdf.dll,Aspose.Words.dll,O2S.Components.PDFRender4NET.dll,Util.dll管理系统,做导出功能的,可以用到代码如下:using System;using System.Collections.Generic;using System
2017-11-29 16:46:53
316
u盘装系统,建立系统
2011-12-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人