11 2012 档案
文件流的写入,把文件写入到当前项目中的一个文件夹里,以当前系统时间的年月命名
摘要:string datenow = DateTime.Now.ToString();//获取当前的系统时间 string psth =Server.MapPath( "/wenjian/" + DateTime.Now.ToString("yyyyMM") + ".csv");//将要写入的路径,当前的项目文件夹下 //string path=Server.MapPath("wenjian")+"\\"+DateTime.Now.ToString("yyyyMM")+"
阅读全文
alert弹出窗口的好看点得样式
摘要:function sAlert(str) { var msgw, msgh, bordercolor; msgw = 200; //提示窗口的宽度 msgh = 100; //提示窗口的高度 bordercolor = "#336699"; //提示窗口的边框颜色 titlecolor = "#99CCFF"; //提示窗口的标题颜色 var sWidth, sHeight; sWidth = document.body.offsetWidth; sHeight = document.body.offsetHeight; var bgObj = docu
阅读全文
vs 后台弹出js弹出框
摘要:ClientScript.RegisterStartupScript(this.GetType(), "", "alert('添加成功')", true);
阅读全文
js post get ajax 调用接口传值 json方式
摘要:<script type="text/javascript"> function sendpost2() { var shoujihaoma = document.getElementById("Mobphone").value; var phone = md5();//MD5加密 var app_idi = "2B3D396DBD874913BA0EBCF4E04E394A"; var qian = jine();//获取金额 $.ajax({ type: "post", async: false,
阅读全文
js 调用一般处理程序 调用 接口post get
摘要:一般处理程序代码 public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string action = context.Request.QueryString["action"]; if (action == "get") { string url = "http://192.168.10.191:8078/recharge/getorder.ashx?"; string appi
阅读全文
js post get 各种传参
摘要:function send() { var shouji = md5(); //MD5加密文本框中的手机号 var chongzi = jine(); //获取将要充值的金额 var dianhua = document.g...
阅读全文
js ajax post 页面传值
摘要:自己写的一个简单的js post ajax 页面传值ajax一般处理程序相应代码public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/plain"; string name = context.Request.Form["name"].ToString();//获取Default.aspxpost发送过来的数据 string pwd=context.Request.Form["pwd"].ToString(); /
阅读全文
js实现页面跳转的几种方式
摘要:第一种: <script language="javascript" type="text/javascript"> window.location.href="login.jsp?backurl="+window.location.href; </script>第二种: <script language="javascript"> alert("返回"); window.history.back(-1); </script>第三种: <sc
阅读全文
c#调用dll插件
摘要:///<summary>///初始化群发器///</summary>///<paramname="comport">端口</param>///<paramname="baud">波特率</param>///<returns></returns>[DllImport("mysms.dll",EntryPoint="InitModem",ExactSpelling=false,CharSet=System.Runtime.I
阅读全文
JavaScript时间控件
摘要:/* * My97 DatePicker 4.7 Beta3 * License: http://www.my97.net/dp/license.asp * Compressed by JSA(www.xidea.org) */var $dp,WdatePicker;(function(){var _={$wdate:true,$dpPath:"",$crossFrame:true,doubleCalendar:false,autoUpdateOnChanged:false,position:{},lang:"auto",skin:"defau
阅读全文
.NET图片上传
摘要:/// <summary> /// 这是图件的上传 /// </summary> /// 创建时间:2012/06/27 public string tujian() { string path = ""; if (FileUpload1.HasFile) { if (FileUpload1.PostedFile.ContentLength > 1000 * 1000) { Response.Write("过大"); } else { if (FileUpload1.PostedFile.FileName.Substring
阅读全文
通用简单的.NET导入导出
摘要:/// <summary> /// 导出Excel /// </summary> /// 创建时间:2012/07/01 //private void fExpert(DataTable dt) private void fExpert(IList<Farmer> comlist) { Respon
阅读全文
C#调用WebService
摘要:1.1、Web Service基本概念Web Service也叫XML Web Service WebService是一种可以接收从Internet或者Intranet上的其它系统中传递过来的请求,轻量级的独立的通讯技术。是:通过SOAP在Web上提供的软件服务,使用WSDL文件进行说明,并通过UDDI进行注册。XML:(Extensible Markup Language)扩展型可标记语言。面向短期的临时数据处理、面向万维网络,是Soap的基础。Soap:(Simple Object Access Protocol)简单对象存取协议。是XML Web Service 的通信协议。当用户通过U
阅读全文
浙公网安备 33010602011771号