09 2016 档案
Repeater 使用方法
摘要:ItemTemplate: 包含要逐一呈现给数据源中的每个数据项的 HTML 元素和控件 AlternatingItemTemplate: 包含要逐一呈现给数据源中的其他每个数据项的 HTML 元素和控件。通常,可以使用此模板来为替代项创建不同的外观,例如指定一种不同于 ItemTemplate 中
阅读全文
web form 复合控件
摘要:DropDownList 下拉列表 会被编译为select option ps.name 服务端常用,id 客户端常用 一般用法: 一、将数据放进去 方法一:同WinForm相同,给定数据源,然后绑定数据 方法二:使用foreach遍历取出的数据 二、将数据取出 1、取一条数据 可以根据需求取Val
阅读全文
weborm 简单控件
摘要:Label - 显示文字,编译后是spanLiteral - 显示文字,编译后没有形成元素 只是文字 一般用来输出 js代码内容 TextBox - 文本框 TextMode -普通文本框 singleline = 单行、编译后为 <input name="textbox1" type="text"
阅读全文
WebForm开发基础
摘要:ASP.NET - .net开发网站应用程序的技术总称 ASP WebForm MVC 是ASP.NET的两个技术方法 WebForm类似于WinForm,可视化操作 MVC类似于Java,多用代码操作 在使用VS调试HTML文件时,除非使用断点测试C#代码,不需要使用启动 可以在HTML代码上右键
阅读全文
Asp.Net 基础理论
摘要:WebForm是微软开发的一款产品,它将用户的请求和响应都封装为控件。让开发者认为自己是在操作一个windows界面。极大地提高了开发效率。 在学习WebForm时,其知识量比WinForm要多,在实际使用过程中WebForm的使用约占80%,WinForm占大约20%。 WinForm是C/S(客
阅读全文
winform 进程,线程
摘要:一、进程 进程是一个具有独立功能的程序关于某个数据集合的一次运行活动。 它可以申请和拥有系统资源,是一个动态的概念,是一个活动的实体。 Process 类,用来操作进程。 命名空间:using System.Diagnostics; Process.Start("calc"); //打开计算器Pro
阅读全文
文件操作
摘要:文件及文件夹操作 C/S:WinForm可以操作客户端文件 Client ServerB/S:浏览器服务 Brower Server 命名空间:using system .IO; 1. File类:文件 创建:File.Create(路径);创建文件,返回FileStream FileStream
阅读全文
winform 对话框
摘要:color dialog :颜色选择器 fontdialog 字体样式选择控件: FolderBrowserDialog:文件夹选择控件: openFileDialog:文件选择控件※限制打开的文件后缀:Filter = 文本文件|*.txt|所有文件|*.*;一个显示一个后缀是一组,添加另一组需要
阅读全文
自定义控件
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System...
阅读全文
listview
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u
阅读全文
c#窗体
摘要:窗体这部分内容是程序可视化的第一步,从CMD黑窗到友好的可视化界面,VS提供了简介实用的设计方法和程序方法,大量的智能提醒是程序员在做程序时节省大量的时间 首先了解的是首先了解的窗体的属性和常用公共控件的属性,及其设计操作和程序操作。 窗体的事件: 删除事件:先将事件页面里面的挂好的事件删除,再删后
阅读全文
windo form 窗体布局方式
摘要:DataGridView:显示数据表后台数据绑定:List<xxx> list = new List<xxx>();dataGridView1.DataSource = list;//设置不自动生成列,此属性在属性面板中没有dataGridView1.AutoGenerateColumns = fa
阅读全文
对战的小游戏
摘要:DBconnect.cs duizhan.cs using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace 对战{
阅读全文
操作数据库
摘要:在操作数据库时,将数据方法封装为不同类,增加程序的可读性 提供数据连接对象的类 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks
阅读全文
防注入攻击
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data.SqlClient; namespace
阅读全文
ado.net(增删改)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; namespace ConsoleApplication1 { class Program4 ...
阅读全文
ado.net操作数据库
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; namespace 操作数据库 { class Program { sta...
阅读全文
轻松美化窗体
摘要:1.需要下载IrisSkin4.dll或者IrisSkin2.dll和ssk皮肤文件。 2.添加引用IrisSkin4.dll或者IrisSkin2.dll到项目中,将下载好的ssk皮肤文件复制到项目中。 3.c#Main修改成如下 /// <summary>/// 应用程序的主入口点。/// </
阅读全文
浙公网安备 33010602011771号