NetBlog主题
2017-09-04 17:19
3216
namespace Test
{class Program{static void Main(string[] args){Thread t1 = new Thread(new ThreadStart(TestMethod));Thread t2 = new Thread(new ParameterizedThreadStart(TestMethod));t1.IsBackground = true;t2.IsBackground = true;if(!t1.IsAlive)//线程状态,如果…
2017-09-01 17:17
12854
using DevExpress.XtraTab;
using System;
using System.Windows.Forms;namespace devExpress标签页
{public partial class Form1 : Form{public Form1(){InitializeComponent();}private void button1_Click(object sender, EventArgs e){UserControl1 uc1 = new UserControl…
2017-05-24 10:55
4061
20180530更新/// summary/// 写cookie值/// /summary/// param name="strName"名称/param/// param name="strValue"值/param/// param name="strValue"过期时间(分钟)/parampublic static void WriteCookie(string strName, string strValue, int expir…
2019-08-27 11:59
4082
class SessionHelper
{//转载请保留原创地址 http://www.luofenming.com/show.aspx?id=ART2019082700002/// <summary>/// 根据Session名获取Session对象/// </summary>/// <param name="name"></param>/// <returns></returns>…
2019-10-19 21:36
4212
using Microsoft.Extensions.Caching.Memory;
using System;namespace lqwvje.Common
{public class CacheHelper{ //原创来自 http://www.luofenming.com/show.aspx?id=ART2019101900001public static IMemoryCache _memoryCache = new MemoryCache(new MemoryCacheOptions…
2017-08-26 08:00
4846
<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title></title><meta charset="utf-8" /><style type="text/css">#dv1 {}.…
2019-12-17 15:31
2395
集群是:多台服务器提供相同功能,增强处理能力和容错能力。所有多台服务器的程序都一样,但各台服务器IP不一样,端口也可能不一样,我们要把服务器IP和端口告诉Consul,在这里有两种方法 方法一(从命令行读取IP和端口)在程序入口 Main方法里面添加命令行读取功能代码如下publ…
2023-12-20 11:47
6181
相关的视频教程 https://www.bilibili.com/video/BV1664y1C7ko/ (如果不会请看我录制的视频教程)log4net.config配置文件?xml version="1.0" encoding="utf-8"?configuration configSections section name="log4net" type="log4net.Config.Log4NetConfig…
2023-06-04 16:03
559
通过Django创建一个简单的网站地址:http://www.luofenming.com/show.aspx?id=2a32c75cd28e4a3c95e7d738357e62eb,我们在这个实例上添加新的应用,并关联新的应用1、进入myweb目录,与manage.py 在同一个目录,执行下面命令,将会生成一个article目录,即是我们要创建的新应用…
2017-09-10 11:12
8293
2020-01-10 更新public DataTable CreateDataTable(){//转载请保留 http://www.luofenming.com/show.aspx?id=ART2017091000001DataTable dt = new DataTable("testTable");//创建名字testTable的DataTableDataColumn DcAutoId = new DataColumn("tId", typeof(int));DcAutoI…