随笔分类 - C#
摘要:1.往D:/output/jsondata1.txt中写入“获取前端传来的json数据” string filePath = "D:/output/jsondata1.txt";string jsonData="获取前端传来的json数据"; //想输出的信息 //System.IO.File.Wr
阅读全文
摘要:写在Login.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login - 复制.aspx.cs" Inherits="Login" %> <!DOCTYPE html> <html xmlns="http://www.w
阅读全文
摘要:写在CommonClass.cs /// 发送Web-Api-Post请求 /// </summary> /// <param name="url">请求地址</param> /// <param name=" body">参数格式</param> /// <myparam1>参数格式 http或h
阅读全文
摘要:public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string action = context.Request.Params["action"]; //str
阅读全文
摘要:Handler.ashx 1.是什么? 2.运行 点运行,能在网页中出现结果
阅读全文
摘要:using Newtonsoft.Json; //操作json库 需将2个文件放bin文件夹中 1. Newtonsoft.Json.dll 2.Newtonsoft.Json.xml
阅读全文
摘要:C#_上传文件到服务器的temp文件夹 1. 写在*.aspx中 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="有效代码_上传文件到服务器的temp文件夹.aspx.cs" Inherits="web_page_ssc_上传文件到服务
阅读全文
摘要:Handler1.ashx (用一般程序连接数据库) 1 <%@ WebHandler Language="C#" Class="Handler1" %> 2 3 using System; 4 using System.Web; 5 using System.Data; 6 using Syste
阅读全文
摘要:Handler1.ashx <%@ WebHandler Language="C#" Class="Handler1" %> using System; using System.Web; using System.Data; using System.Data.SqlClient; //数据库 p
阅读全文
摘要:一般处理程序 using Newtonsoft.Json; using Newtonsoft.Json.Linq; using SSC2.DB; //详见如何生成LING数据访问,微软公司提供的新技术。查询操作可以通过编程语言自身来传达,而不是以字符串形式嵌入到应用程序代码中。 using Syst
阅读全文
摘要:Default3.aspx.cs 1 using System; 2 using System.Collections.Generic; 3 using System.Data;//数据库执行方式 4 using System.Data.SqlClient; //数据库 5 using System
阅读全文