摘要:
using System;using System.Collections.Generic;using System.Text;using System.ComponentModel;using System.Runtime.CompilerServices;namespace NET.MST.Sixth.MultiEventsClass{ class MainClass { static voi... 阅读全文
posted @ 2010-06-23 18:31
JasonNET
阅读(1197)
评论(0)
推荐(0)
摘要:
第一范式:关系模式中,每个属性不可再分。属性原子性第二范式:非主属性完全依赖于主属性,即消除非主属性对主属性的部分函数依赖关系。第三范式:非主属性对主属性不存在传递函数依赖关系。BNCF范式:在第三范式的基础上,消除主属性之间的部分函数依赖关系数据库设计之时是要遵守一定的规则的。尤其是数据库设计范式 现简单介绍1NF(第一范式),2NF(第二范式),3NF(第三范式)和BCNF,另有第四范式和第五... 阅读全文
posted @ 2010-06-23 18:19
JasonNET
阅读(2034)
评论(0)
推荐(0)
摘要:
--建立客户信息表create table CustomInfo( cid nvarchar(20) not null primary key, cpassword nvarchar(30) not null check(len(cpassword)>=6), csum int not null default(0))goinsert into CustomInfo(cid,cpasswor... 阅读全文
posted @ 2010-06-23 18:10
JasonNET
阅读(452)
评论(0)
推荐(0)
摘要:
xml 文件为:<?xml version="1.0"?><configuration><configSections><section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Micr... 阅读全文
posted @ 2010-06-23 18:01
JasonNET
阅读(1602)
评论(0)
推荐(0)
摘要:
微软为我们写好的一个底层,有兴趣的可以Copy// ===============================================================================// Microsoft Data Access Application Block for .NET// http://msdn.microsoft.com/library/en-us/d... 阅读全文
posted @ 2010-06-23 17:42
JasonNET
阅读(222)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Net.Mail;using System.Net;namespace SendEmail{ class Program { static void Main(string[] args) { MailMessage mms = new Mail... 阅读全文
posted @ 2010-06-23 17:37
JasonNET
阅读(206)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Messaging;namespace QueueTest{ class Program { static void Main(string[] args) { string path = @".\private$\test"; if (Mess... 阅读全文
posted @ 2010-06-23 17:34
JasonNET
阅读(2301)
评论(1)
推荐(1)
摘要:
前台放两个Button 一个是提交,一个是查询后台:using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.W... 阅读全文
posted @ 2010-06-23 17:32
JasonNET
阅读(266)
评论(0)
推荐(0)
摘要:
前台放一个TextBox、一个Label、一个Button(value="注销")后台:using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;usi... 阅读全文
posted @ 2010-06-23 17:30
JasonNET
阅读(313)
评论(0)
推荐(0)
摘要:
function show(){ var filepath = document.getElementById("FileUpload"); var imagepath = document.getElementById("Image1"); imagepath.src = filepath.value;} 阅读全文
posted @ 2010-06-23 17:25
JasonNET
阅读(3057)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Web;using System.Web.Security;using CrystalDecisions.CrystalReports.Engine;using CrystalDecisions.Shared;using System.IO; p... 阅读全文
posted @ 2010-06-23 17:20
JasonNET
阅读(196)
评论(0)
推荐(0)
摘要:
XMLHttpRequest对象是当今所有AJAX和Web 2.0应用程序的技术基础。尽管软件经销商和开源社团现在都在提供各种AJAX框架以进一步简化XMLHttpRequest对象的使用;但是,我们仍然很有必要理解这个对象的详细工作机制。 一、 引言 异步JavaScript与XML(AJAX)是一个专用术语,用于实现在客户端脚本与服务器之间的数据交互过程。这一技术的优点在于,它向开发者提供... 阅读全文
posted @ 2010-06-23 17:18
JasonNET
阅读(271)
评论(0)
推荐(0)
摘要:
<script language="javascript" type="text/javascript"> function selectAll(obj) { var theTable = obj.parentElement.parentElement.parentElement; var i ; var j = obj.parentElement.cellIndex; for(i =... 阅读全文
posted @ 2010-06-23 17:08
JasonNET
阅读(218)
评论(0)
推荐(0)
摘要:
解答: --1select * from students where sid in(select r_sid from sresult where r_cid=(select cid from Course where cname='税收基础'))--2select * from students where sid in(select r_sid from SResult where r_ci... 阅读全文
posted @ 2010-06-23 17:02
JasonNET
阅读(220)
评论(0)
推荐(0)
摘要:
<%@ WebHandler Language="C#" class="Handler" %>using System;using System.Web;public class Handler : IHttpHandler,System.Web.SessionState.IRequiresSessionState{ //private static System.Random ran... 阅读全文
posted @ 2010-06-23 16:44
JasonNET
阅读(217)
评论(2)
推荐(0)
摘要:
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using ... 阅读全文
posted @ 2010-06-23 16:43
JasonNET
阅读(418)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Reflection;namespace NET.MST.Sixth.ReflectionFactory{ /// <summary> /// 使用者 /// </summary> class Customer { sta... 阅读全文
posted @ 2010-06-23 13:59
JasonNET
阅读(5231)
评论(0)
推荐(1)
摘要:
using System;using System.Security.Permissions;using System.Text;using System.Reflection;// Download by http://www.codefans.netnamespace UseReflection{ /// <summary> /// 这里的特性要求程序的运行需要完全信任的安全级别 ... 阅读全文
posted @ 2010-06-23 13:57
JasonNET
阅读(1005)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Text;// Download by http://www.codefans.netnamespace NET.MST.Sixth.TraFactory{ /// <summary> /// 使用者 /// </summary> class Custome... 阅读全文
posted @ 2010-06-23 13:55
JasonNET
阅读(248)
评论(0)
推荐(0)
摘要:
#region 导出excel /// <summary> /// yinmin 导出panel控件中的内容到excel /// </summary> /// <param name="plOut"></param> public static void OutPutExcel(Panel plOut) { System.Web.HttpConte... 阅读全文
posted @ 2010-06-23 13:52
JasonNET
阅读(209)
评论(0)
推荐(0)
摘要:
function autoRowSpan(tb,row,col) { var lastValue=""; var value=""; var pos=1; for(var i=row;i<tb.rows.length;i++) { value = tb.rows[i].cells[col].innerText; if(lastValue == value) { tb.rows[i].dele... 阅读全文
posted @ 2010-06-23 13:52
JasonNET
阅读(1989)
评论(2)
推荐(0)
摘要:
一: ASP.NET 的安全认证模式Windows, Forms, Passport, None二: 修改验证模式修改Web.config <system.web> <!--修改验证模式为Forms--><authentication mode="Forms"><forms loginUrl="~/Login.aspx" name="HotelUser" ... 阅读全文
posted @ 2010-06-23 13:51
JasonNET
阅读(3217)
评论(2)
推荐(1)
摘要:
using System;/// <summary>/// 插入排序 的摘要说明。/// </summary>public class InsertSort{public static void Main(){//int[] intary={35,58,47,96,12,45,78};int[] intary={10,8,7,6,5,4,3,2,1,1};Console.W... 阅读全文
posted @ 2010-06-23 13:49
JasonNET
阅读(184)
评论(0)
推荐(0)
摘要:
using System;/// <summary>/// 递归快速排序 的摘要说明。/// </summary>public class QuickSort{public static void Main(){int[] intary={45,67,34,23,12,89};Console.WriteLine("排序前,输出数组如下:");printArray(intar... 阅读全文
posted @ 2010-06-23 13:48
JasonNET
阅读(200)
评论(0)
推荐(1)
摘要:
要在里一个页面上进行操作ReportDocument rdocument = new ReportDocument(); //公用打印方法 ExportCrystalL ExCrystal = new ExportCrystalL(); User u = new User(); #region 加载页面 protected void Page_Load(object sender, EventAr... 阅读全文
posted @ 2010-06-23 13:21
JasonNET
阅读(479)
评论(0)
推荐(0)
摘要:
function rundiff() { var aa=document.getElementById("hidvlaue").value; if(aa =="1") { p(); } else { retUrl(); } } function p() { var p1=document.getElementById("d1").style.display="none"; window.print... 阅读全文
posted @ 2010-06-23 13:14
JasonNET
阅读(5523)
评论(0)
推荐(0)
摘要:
public override void VerifyRenderingInServerForm(Control control) { // Confirms that an HtmlForm control is rendered for }private void OutPutByGridview() { Response.Clear(); Response.AddHeader("conten... 阅读全文
posted @ 2010-06-23 13:13
JasonNET
阅读(335)
评论(0)
推荐(0)
摘要:
.cs 中如下代码 public void Mathes() {double a = 1231.654643;double i = Math.Round(a,2);//四舍五入到小数点后两位}JS 中如下代码 <script type="text/javascript">function a(){var num=123.54646;alert(num.toFixed(2));} &l... 阅读全文
posted @ 2010-06-23 12:29
JasonNET
阅读(229)
评论(0)
推荐(0)
摘要:
protected void btn_output_Click(object sender, EventArgs e) { //OutPutByGridview(); PanelOutput(); } private void PanelOutput() { DataSet ds = u.GetOutTableData(""); if(ds != null && ds.Tables... 阅读全文
posted @ 2010-06-23 12:27
JasonNET
阅读(1862)
评论(0)
推荐(0)
摘要:
<script type="text/javascript" language="javascript"> function setParentState(objNode) { var objParentDiv = WebForm_GetParentByTagName(objNode, "div"); if (objParentDiv == null || objParentDiv =... 阅读全文
posted @ 2010-06-23 12:24
JasonNET
阅读(3228)
评论(0)
推荐(0)
摘要:
$.fn.mypagination = function(totalProperty,opts){ opts = $.extend({ perPage:10, callback:function(){ } },opts||{}); return this.each(function(){ function numPages(){ return Math.ceil(totalProper... 阅读全文
posted @ 2010-06-23 12:16
JasonNET
阅读(2774)
评论(0)
推荐(0)
摘要:
服务端:要发布到IIS上 public class User : SoapHeader { private string username; private string password; public string UserName { get{return username;} set{username = value;} } ... 阅读全文
posted @ 2010-06-23 12:05
JasonNET
阅读(216)
评论(0)
推荐(0)
摘要:
namespace TrafficLights{ class Program { #region 定义全局变量 static string lightcol = ""; static TrafficLight tr = null; #endregion static void Main(string[] args) { #region 通过事件完成 //while (true) //{ // Tr... 阅读全文
posted @ 2010-06-23 11:43
JasonNET
阅读(464)
评论(0)
推荐(0)
摘要:
namespace TomAndJerry{ class Program { static void Main(string[] args) { #region 通过接口来完成 ////猫 //Tom t = new Tom(); ////Mouse //Jerry j = new Jerry(t); //Jerry j1 = new Jerry(t); ////Owner //Owner o =... 阅读全文
posted @ 2010-06-23 11:41
JasonNET
阅读(275)
评论(0)
推荐(0)
摘要:
static void Main(string[] args){ int[] array = new int[] {...........}; Print(array);//打印数组 Sort(array,0,array.Length-1);//排序}private void Print(int[] array){ for(int i =0; i <array.Lenght; i++... 阅读全文
posted @ 2010-06-23 11:38
JasonNET
阅读(2442)
评论(0)
推荐(0)
摘要:
public static void Main(string[] args){ int[] array = new int[]{15,20,10,30,25,33}; Print(array);//打印数组 Sort(array);//排序数组 Print(array);//打印排序后的数组}private void Print(int[] array){ for(int i=0; i ... 阅读全文
posted @ 2010-06-23 11:29
JasonNET
阅读(354)
评论(0)
推荐(0)

浙公网安备 33010602011771号