随笔分类 -  C#

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

点击右上角即可分享
微信分享提示