c#
文章平均质量分 88
张东_
csdn乐知学院.NET
展开
-
c#初体验
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace hello_world{ class Program { static void Main(string[] args) {原创 2011-12-26 21:12:05 · 371 阅读 · 0 评论 -
dropdownlist 启用了autopostback但是不执行selectedindexchanged事件
原因很简单,就是因为dropdownlist设置了相同的value值。原创 2013-01-07 14:05:59 · 928 阅读 · 0 评论 -
c#读取xml内容保定到dropdownlist
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> 书名 作者原创 2012-12-20 19:48:17 · 1705 阅读 · 2 评论 -
xml数据写入到输出流中
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Xml;namespace Ado_upper{ public p原创 2012-12-20 19:56:04 · 1201 阅读 · 0 评论 -
读取xml文件内容_计算节点数量
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Xml;namespace Ado_upper{ public p原创 2012-12-20 19:57:01 · 3973 阅读 · 0 评论 -
http错误代码大全
http错误代码含义中英文对照 Http错误代码含义中文 概要 当用户试图通过 HTTP 或文件传输协议 (FTP) 访问一台正在运行 Internet 信息服务(IIS) 的服务器上的内容时,IIS 返回一个表示该请求的状态的数字代码。该状态代码记录在IIS 日志中,同时也可能在 Web 浏览器或 FTP 客户端显示。状态代码可以指明具体请求是否已原创 2013-01-03 19:28:59 · 750 阅读 · 0 评论 -
ASP.NET Web.config配置文件的基本使用方法
xmlversion="1.0"?>注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的“网站”->“Asp.Net 配置”选项。设置和注释的完整列表在 machine.config.comments 中,该文件通常位于 "Windows"Microsoft.Net"Framework"v2.x"Config 中原创 2013-01-02 21:37:30 · 663 阅读 · 0 评论 -
Errore HTTP 404.2 - Not Found" IIS 7.5 请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理
如题,这个错误google时一大堆各种各样的解决办法,但具体原因就没怎么详细介绍,404.2就一个http status code, 在msdn上说:404.2 - ISAPI or CGI restriction 即IIS里的“ISAPI 或CGI 限制” 的配置有问题, “ISAPI” 是供IIS加载和调用的DLL, 如果没配置相关的ISAPI,就无法正确地解释网页的内原创 2013-01-02 21:36:36 · 347 阅读 · 0 评论 -
HttpApplication,HttpModule,HttpContext及Asp.Net页生命周期
IIS在接到一个新的http请求后,最终会调用asp.net_isapi.dll的ISAPI扩展(特指IIS6.0环境,iis7.0的应用程序池默认为集成方式,相对有所变化),然后传递到httpRuntime Pipe(http运行时管道),Asp.Net这时才开始运行(即HttpRunTime是Asp.Net真正的入口),HttpRunTime会为每个asp.net应用自动创建一个HttpApp原创 2013-01-01 14:35:33 · 411 阅读 · 0 评论 -
<Table>实现分页
前台: runat="server" Text="搜索" onclick="Button3_Click" /> runat="server" Text="下一页" onclick="Button2_Click" />原创 2013-03-13 17:19:07 · 3419 阅读 · 0 评论 -
滑动门导航条
滑动门导航条代码如下:要注意background-position的设置,原理是a的鼠标经过背景改变和 #navi_ul li a:hover span的背景改变 博客专栏 博客专家 热门文章 排行榜 css:#navi_ul li{ float:left; list-style:none; margin-left:10px; m原创 2013-05-08 19:47:06 · 1019 阅读 · 0 评论 -
jq给div的.html赋值,后台.innerhtml获取不到值-原因
label在客户端会变成,他在客户端的赋值不会保存到viewstate。客户端赋完值,点击按钮将页面提交到服务器端,服务器端根据控件的ID到viewstate中找其在客户端的赋值,此时找不到label在客户端的赋值,因为提交页面时没有保存,而textbox在客户端变成<input type='text'..,的形式,这种控件客户端赋值是被保存到viewstate和页面一起提交的,所以能在服务器原创 2013-05-11 17:14:44 · 7413 阅读 · 0 评论 -
判断是否进球,jq插件
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> $(function () { $("#basket原创 2013-05-09 11:17:48 · 664 阅读 · 0 评论 -
ajax三级联动省市选择器
前台:http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> $(function () { $.ajax({ type: "post",原创 2013-05-22 16:44:28 · 3855 阅读 · 0 评论 -
拖拽删除-jq插件
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> #mydiv{ width:900px; background-color:#444;}原创 2013-05-09 10:08:11 · 1031 阅读 · 0 评论 -
javascript中可用的编码解码函数,有如下的组合:
javascript中可用的编码解码函数,有如下的组合: escape(string); unescape(string);encodeURI(string); decodeURI(string);encodeURIComponent(string); decodeURIComponent(string);他们之间的区别为:escape/unescape: 以1原创 2013-05-08 19:44:56 · 799 阅读 · 0 评论 -
jquery-ajax智能提示
$(function () { //var htmlobj = $.ajax({ type: "GET", url: "jquery-ajax-智能感知.aspx?t=" + $("#sousuo").val, async: false }); //array[0] = htmlobj.responseTe原创 2013-05-08 19:43:41 · 817 阅读 · 0 评论 -
ajax分页
前台:http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> $(function () { function fun(pgindex, pgsize) {原创 2013-05-22 16:47:14 · 722 阅读 · 0 评论 -
ashx如何用session(验证码)
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.SessionState;//这是在.ashx 中引用session 的必备条件之一namespace CSDN{ /// /// yzm 的摘要说明原创 2013-05-08 19:47:57 · 805 阅读 · 0 评论 -
ashx的验证码
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Drawing;using System.IO;using System.Web.SessionState;//1.添加引用namespace gdi{ ///原创 2012-12-26 16:01:14 · 617 阅读 · 0 评论 -
数据绑定版省市选择器
aspx: onselectedindexchanged="DropDownList1_SelectedIndexChanged"> aspx.csusing System;usin原创 2012-11-29 17:36:05 · 551 阅读 · 0 评论 -
后台获取前台runat=server的select的值(省市选择器)
这样写:前台;HTML codeli> asp:Label ID="Lpro" runat="server" Text="省份:" CssClass="fixWidth">asp:Label> select id="Select1" name="Select1" runat="server" oncha原创 2012-10-06 15:47:37 · 4873 阅读 · 3 评论 -
通用版登录login_委托
using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;namespac原创 2012-09-14 17:11:11 · 634 阅读 · 0 评论 -
大写日期转换成阿拉伯数字的算法
using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace _911日期转换{ class Program { static void Main(string[] args) {原创 2012-09-12 16:25:28 · 1811 阅读 · 0 评论 -
override重写基类方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Vehicles{ class Vehicle//车辆类 { public void StartEngine(String noiseToMakeWhenSt原创 2012-09-04 16:21:28 · 1859 阅读 · 0 评论 -
new 关键字隐藏基类方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Vehicles{ class Car : Vehicle//汽车类继承车辆类 { public void Accelerate()//加速原创 2012-09-04 16:52:54 · 1702 阅读 · 0 评论 -
base方法调用基类构造函数
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 人类{ class person { private int age; private string name; priv原创 2012-09-04 17:00:50 · 2860 阅读 · 0 评论 -
新学期开始了。
“漫长的暑假”过去了。今天上课发现,老师讲的都听的很模糊,直到下午自己做练习才渐渐回忆起以前的知识,新的学期又是新的开始。这一年是该拼命的时候了,昔日的学哥已经就业了。既有羡慕的眼光,也有忧虑的眼光。羡慕人家找到工作了,忧虑自己能不能找到称心的工作。我不要求一开始工资高低,但是要符合我的发展方向。这是我唯一期盼的。收下心该启程了。原创 2012-09-03 14:50:31 · 519 阅读 · 2 评论 -
c#运算符使用,以及装箱拆箱
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 运算符{ class Program { static void Main(string[] args) { Si原创 2011-12-26 21:15:01 · 593 阅读 · 0 评论 -
.net版本聊天室源码
聊天室.aspx: #ltmessage { height: 189px; } 在线聊天:人 请输入你的姓名:<asp:TextBox ID="name" runat="s原创 2012-10-16 15:10:44 · 2650 阅读 · 0 评论 -
页面中传递数据的几种方法
页面中传递数据的三种方法:cookies,session,application,还有一种把当前页面中的数据直接传递给另一个页面:页面1的aspx:@Page Language="C#"AutoEventWireup="true"CodeBehind="page1.aspx.cs"Inherits="跨页面传递.page1"%> DOCTYPEhtml原创 2012-10-17 19:48:20 · 971 阅读 · 0 评论 -
触发器的定义与使用
--每次插入数据时候都把数据值打印出来create trigger tri_student_afteron student after insertasbegindeclare @sClassId intdeclare @SName nvarchar(50)declare @sAge intselect @sClassId=sClassId,@SName=sName原创 2012-11-14 19:02:37 · 640 阅读 · 0 评论 -
游标的建立
--使用游标--游标的定义--(1)定义declare cur_student cursor fast_forward--游标快速向前for select * from student--基于返回的结果集--2(打开)open cur_student--3操作fetch next from cur_student--向下移动一条游标while @@fetch_s原创 2012-11-14 18:54:23 · 559 阅读 · 0 评论 -
asp中实现sql事务登录_增删改查
web.config 有关如何配置 ASP.NET 应用程序的详细消息,请访问 http://go.microsoft.com/fwlink/?LinkId=169433 --> login.aspx: 用户名原创 2012-11-13 20:08:41 · 2645 阅读 · 0 评论 -
dataGridView分页显示数据
app.config: ClassModel_student.cs:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WindowsFormsApplication1{原创 2012-11-13 19:52:02 · 618 阅读 · 0 评论 -
ADO实现sql事务
app.config: c#using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Configuration;namespa原创 2012-11-13 19:40:20 · 692 阅读 · 0 评论 -
利用sql存储过程显示内容到dataGridView
app.config ClassModel.cs:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WindowsFormsApplication1{ clas原创 2012-11-13 19:54:45 · 842 阅读 · 0 评论 -
ADO中使用储存过程_sql事务
app.config c#: private void button3_Click(object sender, EventArgs e) { string connstr= ConfigurationManager.ConnectionStrings["connstr3"].C原创 2012-11-13 19:46:53 · 452 阅读 · 0 评论 -
sql的insert语句自动生成器_c#源码
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Na原创 2012-10-24 19:17:39 · 4868 阅读 · 0 评论 -
oracle数据库远程连接配置以及ado连接
前台: onclick="Button1_Click" /> onclick="Button2_Click" /> 后台:using System;using System.Co原创 2013-05-31 10:52:49 · 1897 阅读 · 0 评论