05 2011 档案
摘要:调用:UpLoadIMG(this.FileName, "/upload/pic/", ".GIF.JPG.PNG.SWF");public static string TransToTwo(string theStr) { if (theStr.Length == 1) { return "0"+theStr; } else { return theStr; } } public static string UpLoadIMG(FileUpload fulFile, string DirectionName,string ExtNa
阅读全文
摘要:public static string fromNowToTheDate(DateTime theDate) { string FromNowToTheDate = ""; DateTime d1 = DateTime.Now; DateTime d2 = theDate; TimeSpan d3 = d2.Subtract(d1); FromNowToTheDate = d3.Days.ToString() + "天" + d3.Hours.ToString() + "小时" + d3.Minutes.ToString() + &
阅读全文
摘要:public static string GetClientIP() { string result = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (null == result || result == String.Empty) { result = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; } if (null == result || result == String.
阅读全文
摘要:/// 转换数字金额主函数(包括小数) /// /// 数字字符串 /// 转换成中文大写后的字符串或者出错信息提示字符串 public static string ConvertSum(string str) { if (!IsPositveDecimal(str)) return "输入的不是正数字!"; if (Double.Parse(str) > 999999999999.99) return "数字太大,无法换算,请输入一万亿元以下的金额"; char[] ch = new char[1]; ch[0] = '.'; /
阅读全文
摘要:/// <summary> /// 一些常用的Js调用 /// <summary> public class Jscript { /// 弹出JavaScript小窗口 /// </summary> /// <param name="js">窗口信息</param> public static void Alert(string message) { #region string js = @"<Script language='JavaScript'> alert('
阅读全文
摘要:<asp:Repeater ID="rpt1" runat="server" onitemdatabound="rpt1_ItemDataBound"> <ItemTemplate> <asp:Label ID="lblzyc" runat="server" Text='<%#Eval("id") %>' Visible="false"></asp:Label> <h1 on
阅读全文
摘要:<asp:Repeater id="dlFileType" runat="server" onitemdatabound="dlFileType_ItemDataBound1"><ItemTemplate><asp:Label ID="lblzyc" runat="server" Text='<%#Eval("id") %>' Visible="false"></asp:Label>
阅读全文
摘要:function check(){var txtseach=document.getElementById("txtseach");var big=window.document.getElementById("bigclass").value;var name=encodeURI(txtseach.value);if(txtseach.value.length<=0){alert('请输入关键字搜索');}else if(txtseach.value=='输入关键字……'){alert('请输入关键字搜索&
阅读全文
摘要:<script language="javascript" type="text/javascript"> var arr= { "百度":["http://www.baidu.com","#ff0000"], "谷歌":["http://www.google.com","#00ff00"], "雅虎":["http://www.yahoo.com","#0000ff&quo
阅读全文

浙公网安备 33010602011771号