摘要: asp.net如果直接调试不成功可以把地址的localhost改为127.0.0.1试试。如果127.0.0.1可以调试那么去检查C:\WINDOWS\system32\drivers\etc\hosts 文件用记事本打开在最后一行填上127.0.0.1 localhost就可以了。 阅读全文
posted @ 2012-06-15 11:28 Sam萨姆 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1 --------------创建数据库------------------ 2 use master 3 go 4 if exists(select * from sysdatabases where name='Text001') 5 begin 6 drop database Text001 7 end 8 go 9 create database Text00110 go11 use Text00112 --1) 创建一张学生表,包含以下信息,学号,姓名,年龄,性别,家庭住址,联系电话13 create table stu 14 (15 学号... 阅读全文
posted @ 2012-03-21 15:12 Sam萨姆 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 一、WPF样式类似于Web应用程序中的CSS,在WPF中可以为控件定义统一的样式(Style)。样式属于资源的一种,例如为Button定义统一的背景颜色和字体: <Window.Resources> <Style TargetType="Button"> <Setter Property="Background" Value="red" /> <Setter Property="Margin" Value="5" /> <Setter Pro 阅读全文
posted @ 2012-03-16 16:44 Sam萨姆 阅读(1344) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Wind{ public partial class Form1 : Form { int c = 1; public Form1() { InitializeComponent(); ... 阅读全文
posted @ 2012-03-13 13:29 Sam萨姆 阅读(748) 评论(0) 推荐(0) 编辑
摘要: <Style TargetType="Button">,如果没有更优先的(样式的优先性)样式指定,那么默认所有在Grid中的Button都用这套样式 1 <Grid.Resources> 2 <Style TargetType="Button" x:Key="ButtonStyleBase"> 3 <Setter Property="Width" Value=" 300"></Setter> 4 </Style> 5 < 阅读全文
posted @ 2011-12-28 11:11 Sam萨姆 阅读(284) 评论(0) 推荐(0) 编辑