摘要: use mastergoif exists(select * from sys.databases where name='MyData')drop database MyDatagocreate database MyDatagouse MyDatagoif exists(select * from sys.objects where name='Provice')drop table prov... 阅读全文
posted @ 2010-11-05 20:40 Curitis 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 前台代码 <asp:ListBox ID="LB" runat="server" AutoPostBack="true" Width="100" Height="100"> <asp:ListItem>0</asp:ListItem> <asp:ListItem>1</asp:ListItem> <asp:ListItem>2... 阅读全文
posted @ 2010-11-05 20:38 Curitis 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 前台代码<asp:Button ID="btn_1" runat="server" Text="按钮_1" CommandName="btn1" oncommand="btn_commond" CommandArgument="show1" /><asp:Button ID="btn_2" runat="server" Text="按钮_2" CommandName="btn2"... 阅读全文
posted @ 2010-11-05 20:34 Curitis 阅读(183) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> var d=new Date() var weekday=new Array(7) weekday[0]="星期日" weekday[1]="星期一" weekday[2]="星期二" weekday[3]="星期三" weekday[4]="星期四" weekday[5]="星期五" weekday[6]="星期六" d... 阅读全文
posted @ 2010-11-03 14:27 Curitis 阅读(232) 评论(0) 推荐(0) 编辑
摘要: <title>显示日期</title><style type="text/css"> #div { width:400px; height:60px; line-height:60px; background:#FFFFCC; border:1px #0099CC solid; margin:0px auto; padding:15px; } </styl... 阅读全文
posted @ 2010-10-31 22:42 Curitis 阅读(189) 评论(0) 推荐(0) 编辑
摘要: <head>  <title>用web实现点菜</title>  <script type="text/javascript">    function move(obj1,obj2){      for (var i = 0; i < obj1.options.length; i++) {         if (obj1.options[i... 阅读全文
posted @ 2010-10-25 20:21 Curitis 阅读(195) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplicationOne._Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w... 阅读全文
posted @ 2010-10-16 09:11 Curitis 阅读(873) 评论(1) 推荐(0) 编辑
摘要: <!-- 表单 为什么会出现表单? 这就要知道表单的作用:将客户端数据发送到服务器然后写到数据库中 说的直白点就是:客户在你的网站上面填写了内容现在要存放到数据库中去,你不可能让他直接接触数据库,所以就通过表单的方式将他想穿的数据插入到你的数据库中去。 既然是HTML中出现的那它肯定有属于自己的标签:<form> 在这个标签中有两个必须的属性是一定要写的:action、metho... 阅读全文
posted @ 2010-09-25 21:58 Curitis 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 记得在开始自学HTML的时候,遇到的问题就是:完全不知道说的是什么意思。现在在上HTML感觉不知道怎么去学,显得很茫然。不过没关系,要想学会一门新的语言也不是一件简单的事情的,所以还是好好静下心来好好地想一下自己到底那里不会的。学习HTML首先要知道它能分成哪几个部分的:<htnl></htnl> <head></head> <body>... 阅读全文
posted @ 2010-09-21 12:28 Curitis 阅读(212) 评论(0) 推荐(1) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 无重复的冒泡{ class Program { static void Main(string[] args) { //产生无重复的随机数 int[] intArray = new int[20]; bool bl ... 阅读全文
posted @ 2010-09-18 08:49 Curitis 阅读(236) 评论(0) 推荐(0) 编辑