`
cbting
  • 浏览: 59679 次
  • 性别: Icon_minigender_1
  • 来自: 汕头
社区版块
存档分类
最新评论
文章列表
    <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 ...
    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 ...
    protected void Page_Load(object sender, EventArgs e)    {        //获取浏览器的基本信息        HttpBrowserCapabilities b = Request.Browser;        Response.Write("类型"+b.Type+"<br>");        Response.Write("名称" + b.Browser + "<br>");        Response.Write( ...
  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 ...
protected void Page_Load(object sender, EventArgs e)     {         //用Substring方法截取字符串         string str = "Hello word";        string str1 = str.Substring(0,3);         Response.Write(str1);     }
[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 ...
Global site tag (gtag.js) - Google Analytics