乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      ASP.NET一些常用的技巧 - 哇哈哈o(∩_∩)o... - 博客園

       suweixin 2011-01-15

      ASP.NET一些常用的技巧

      //如果新聞標題大于某個值就讓它后面的省掉
      public   string   shengyue(string   str,   int   Int)    
        {    
         if   (str.Length   <=   Int)    
         {    
          return   str;    
         }    
         else    
         {    
          str   =   str.Substring(0,Int)   +   "...";    
          return   str;    
         }    
        }
      HTML代碼:<%# shengyue(DataBinder.Eval(Container.DataItem,"title").ToString(),13)%>


      //防止刷新重復提交:

      Response.Write("<script language='javascript'>alert('信息發(fā)表成功!');window.location = '" + Request.Url +"'</script>");

      //后臺調用前臺腳本驗證代碼
      Button1.Attributes.Add("onclick" ,"javascript:data();");

      //插入一條數據后立即獲取這條ID的值
      string   strSql_InsertFlow   =   "insert   into   data_news(title,body)   values('"+title.Trim()+"','"+body.Trim()+"');select   @@identity   as 'newid'";

      //禁止后退按鈕
      Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);


        本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯系方式、誘導購買等信息,謹防詐騙。如發(fā)現有害或侵權內容,請點擊一鍵舉報。
        轉藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約