文章列表
 
2010-03-06 17:23
 
2010-02-25 18:05
 
2009-03-06 17:50

         见吴秀才与池妓别,因成绝句
红烛短时羌笛怨,清歌咽处蜀弦高。
万里分飞两行泪,满江寒雨正萧骚。

开篇以红烛起头,红烛代表青楼里的气氛,红烛短时 ,就是在青楼良宵将尽,缘分将没,羌笛怨,羌笛是指一种塞外的乐器,一般已幽怨声见长,红烛短时羌笛怨,现在搞不清楚羌笛怨 是指远处塞外的羌笛声幽怨,与眼前景形成对比,还是说是眼前的情景将尽要想远处的情景,如果是遥想的话,那么羌笛怨就是作者心中的感受,如果不是遥想,那就是由远及近两种景致进行

 
2009-03-01 12:59

<%@ Page Language

 
2009-02-10 14:27

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {

            int[] aa = new int[] { 1, 2, 3, 4, 5 };
          

 
2009-01-10 12:09

Cookie的用法也和ASP中差不多。

比如我们建立一个名为aspcn,值为飞刀的cookie

HttpCookie cookie = new HttpCookie["aspcn"];

cookie.Value = "飞刀";

Response.AppendCookie(cookie);

我们取出Cookie值也很简单

HttpCookie cookie = Request.Cookies["aspcn"];

cookieValue = cookie.Value;

有时候我们想在一个Cookie中储存多个信息,那也没有问题。比如我们在名为aspcn的cookie下加多个信息

HttpCookie cooki

 
2009-01-04 21:51

首先创建 image.aspx 文件 (验证码图片文件)

代码如下

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing.Design;
using System.Drawing;


public partial class image : System.Web.UI.Page
{

 
2009-01-04 21:13

this.button1.Click += new System.EventHandler(this.button1_Click);
这句话啥意思?

事件
增加一个监视

当发生Ciick事件时,执行butto1_Click方法

 
2009-01-03 21:39

int j = Int32.Parse( TextBox1.Text);

int j = convert.toint32(TextBox1.text);

错误提示这行代码有错,输入字符串的格式不正确,那么是什么原因呢?

总结起来,出现这个原因的情况,一般分为两种:

第一种是句子本身的语法错误,这个需要根据实际情况改错

第二种也是大家最容易犯的错误,就是你所要转换的内容是存在空的情况,在我的语句中,如果TextBox1的内容是空的时候就执行该语句的话,那么肯定是会报错的,因为返回的 TextBox1.Text不一定是数字,可能返回的是个NULL, TextBox1.Te

 
2008-12-18 21:11

 
   
 
 
文章存档
 
     
 
最新文章评论
  

非常感谢楼主分享,受益了
 

谢谢分享
 

相当牛逼
 

谢谢,很实用
 

路过踩踩,小鸟
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu