2012年9月23日

摘要: C#在Asp.net中实现打开新网页而不关闭当前页Respose.Write("<scriptlanguage='javascript'>window.open('"+url+"');</script>");(打开简洁窗口):Respose.Write("<scriptlanguage='javascript'>window.open('"+url+"','','resizable=1,scrollba 阅读全文
posted @ 2012-09-23 13:00 gongth_12 阅读(641) 评论(0) 推荐(0) 编辑

2012年9月20日

摘要: 几乎所有的WebForm控件都具有的属性1.ClientID,获取控件在客户端的ID。<%=txt1.ClientID%>2.Visible 属性,判断控件是否可见。如果控件的visible的属性设为False的话不仅调试的时候看不到该控件,在源文件一样看不到。3.CssClass 属性,控件的样式名,就是HTML中控件的class属性。可以直接在控件的属性栏里修改CssClass的属性为你想要的css样式。当然那个样式你得在style里定义好了。4.Attributes,用来设置获取控件的额外属性。这个Attributes属性就是为了给控件添加一个他本来没有的属性。控件1.Lab 阅读全文
posted @ 2012-09-20 19:48 gongth_12 阅读(480) 评论(0) 推荐(0) 编辑

2012年9月18日

摘要: aspx页<%@ Page Language="C#" AutoEventWireup="true" CodeFile="zhuce.aspx.cs" Inherits="zhuce" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml 阅读全文
posted @ 2012-09-18 20:51 gongth_12 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 今天学习了一点WebForm的知识,我觉着和WinForm没多大差别。。。都可以拖控件。。webform的空间可以和有两个登录按钮 一个是直接拖的控件 一个是用<From>中的<input>生成的。。。其实他俩代码都差不多一样。。。只不过直接拖的控件被高度封装了今天做了个登陆界面.aspx页。<%@ Page Language="C#" AutoEventWireup="true" CodeFile="denglu.aspx.cs" Inherits="denglu" %>< 阅读全文
posted @ 2012-09-18 20:38 gongth_12 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 按 按钮 text中的值自动增加html页<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title></head><body><form 阅读全文
posted @ 2012-09-18 20:14 gongth_12 阅读(268) 评论(0) 推荐(0) 编辑

2012年9月17日

摘要: html页<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title></head><body><form action="he 阅读全文
posted @ 2012-09-17 22:19 gongth_12 阅读(134) 评论(0) 推荐(0) 编辑

2012年9月14日

摘要: 首先要知道,委托是一种数据类型,委托的概念就是事件的引用,事件就是依靠委托创建的一种有有限制的委托变量,他是为了解决委托在一些情况下的问题而出现的。。用例子来看:在Form1类里 private void Form1_Load(object sender, EventArgs e) { ucButton1.tripleClick = TripleClick; ucButton1.tripleClick = TripleClick3; ucButton1.tripleClick = TripleClick2; } private void TripleClick() { MessageBo... 阅读全文
posted @ 2012-09-14 15:40 gongth_12 阅读(358) 评论(0) 推荐(0) 编辑

2012年9月12日

摘要: 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;namespace sitianzuoye5{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_C 阅读全文
posted @ 2012-09-12 20:51 gongth_12 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 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;namespace 练习7编写函数进行日期转换2{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } Dictionary<char,c 阅读全文
posted @ 2012-09-12 20:40 gongth_12 阅读(171) 评论(0) 推荐(0) 编辑

2012年9月11日

摘要: List<T>ArrayList的所有方法Sort(); 分类排序Max(); 最大Min();最小Sum();求和avatage(); 平均 T,K,V就像是锁,锁住集合中只能存放某种 特点的类型 泛型集合可以镜像foreach遍历,是因为他 们都实现了IEnumerable都有 GetEnumberator()方法 List<int> list=new List<int>(); 通过泛型可以限制集合中存 放的数据的类型Dictionary<K,V> <键,值>Dicti... 阅读全文
posted @ 2012-09-11 21:41 gongth_12 阅读(159) 评论(0) 推荐(0) 编辑

导航