- 浏览: 59679 次
- 性别:
- 来自: 汕头
最新评论
-
cangshanshouwei:
这也不能用啊,请发个全一点儿的。
FileUpload上传图片
文章列表
<script language="javascript" type="text/javascript"> var i = 5; intervalid= setInterval("fun()", 1000); function fun() { if (i == 0) { window.location.href = "default.aspx"; clearInterval(i ...
- 2009-05-10 21:42
- 浏览 1610
- 评论(0)
protected void Button1_Click(object sender, EventArgs e) //A页面 { //Response对象的Redirect方法重定向的功能.并向重定向的url传递参数 string name = txtname.Text.Trim(); string sex = "先生"; if (RadioButton2.Checked) sex = "小姐"; Response.Redirect("Wel ...
- 2009-05-10 21:33
- 浏览 7598
- 评论(0)
protected void Page_Load(object sender, EventArgs e) { //获取浏览器的基本信息 HttpBrowserCapabilities b = Request.Browser; Response.Write("类型"+b.Type+"<br>"); Response.Write("名称" + b.Browser + "<br>"); Response.Write( ...
- 2009-05-10 20:52
- 浏览 745
- 评论(0)
protected void Page_Load(object sender, EventArgs e) { //用Equals比较字符串的比较 相等为true,不相等为false string str = "abc"; string str1 = "abC"; string str2 = "abc"; bool st = str.Equals(str1); bool st1 = str.Equals(str2); Respons ...
- 2009-05-10 20:22
- 浏览 1118
- 评论(0)
用Substring方法截取字符串
- 博客分类:
- C#
protected void Page_Load(object sender, EventArgs e)
{
//用Substring方法截取字符串
string str = "Hello word";
string str1 = str.Substring(0,3);
Response.Write(str1);
}
- 2009-05-10 20:08
- 浏览 932
- 评论(0)
[size=x-small] //格式化字符串format
//格式化成为货币
string str = string.Format("{0:C}\n",-123.2332f);
//格式化为断时间
string str1 = string.Format("{0:d}", DateTime .Now);
Response.Write(str1.ToString()+"<br>");
Response.Write(st ...
- 2009-05-10 20:01
- 浏览 802
- 评论(0)