摘要:Web Service行为 1 使用webservice.htc的限制: 1>要想使用webservice行为组件访问webservice必须保证包含组件的页面和webservice在相同的域中,对于远程服务可以建立本地的中转代理webservice实现。 2>webservice行为组件支持.net中的基本数据类型及其数组,但是用于DataSet自定义类等不提供直接支持,如果使用可以...
阅读全文
摘要:Untitled Page protected void Page_Load(object sender, EventArgs e){ mytitle.Text = "ddddd";}
阅读全文
摘要:使用计时器进行计时在一个窗体中声明一个线程对象private Thread trdTrans = null; //计时器事件 private void tmrDataTrans_Tick(object sender, System.EventArgs e) { if( (trdTrans == null) || (trdTrans.ThreadState == Thread...
阅读全文
摘要:using System.Runtime.InteropServices; //DllImport在该命名空间中;//------------------------------------------------------------------------------------[DllImport("user32.dll")] private static extern bool Is...
阅读全文
摘要:配置上传文件 配置提交数据验证 用户表单验证 --> 用户定义配置值
阅读全文
摘要:using System;using System.Data;using System.Web;using System.Web.Caching;using TIMS.WEB.PublicClass.DataBase; namespace TIMS.WEB.PublicClass.User{ /* Explain: 用户权限 */ /// /// 用户角色 /// public cl...
阅读全文
摘要://MIME = "application/vnd.ms-excel"; //MIME = "application/octet-stream"; Response.Buffer = true; Response.Clear(); //设置数据流输出类型 Response.ContentType = MIME; //设置文件名 ...
阅读全文
摘要:string MIME = "application/vnd.ms-excel"; Response.Clear(); Response.AppendHeader("content-disposition", "attachment; filename="+ HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8...
阅读全文
摘要:using System;using System.Data;using System.Reflection;using System.IO; namespace TIMS.WEB.PublicClass.ReportForms{ /// /// ExcelReportForms 的摘要说明。 /// public class ExcelRF { private Excel.Applicat...
阅读全文
摘要:dtgd_TubleBaseData.TableStyles[0].AllowSorting = false;
阅读全文
摘要:如果要调用用户控件中的方法,则流程如下:1、在用户控件中实现方法,并且该方法的权限为:public;2、将用户控件托至到使用的ASPX页面;3、在CS文件中,首先using将该用户控件的命名空间引入;4、在CS文件中定义该用户控件变量(因为托入的用户控件VS并未定义该对象,所以在定义的时候名称应该与托入的用户控件名称一致)protected 用户控件类名 用户控件对象名称;5、在接下来的CS文件中...
阅读全文
摘要:[服务器]:this.Server.UrlEncode(参数名)[客户端]:encodeURIComponent(参数名)也可以将某些特殊字答转换为全角,也可以解决该问题;
阅读全文
摘要:using System.IO Graphics objGraphics; Bitmap objBitmap = new Bitmap(W, H); objGraphics = Graphics.FromImage(objBitmap); ...... //说明:如果直接以JPEG或GIG输出的话,图片效果模糊不清 MemoryStream tempStream = n...
阅读全文
摘要:[1]Response.ContentType = "application/vnd.ms-excel"; Response.AddHeader("Content-Disposition", "inline; filename=" +HttpUtility.UrlEncode (fileName,System.Text.Encoding.UTF8));[2]Response.ContentTy...
阅读全文
摘要:收藏DLL,如WIN32的API和自己以前做的DLL, C#调用DLL很像VB,下面讨论的C#调用DLL的方式。 看看下面的例子,演示了怎么定义DLL函数接口 public class Utility { [DllImport("kernel32", EntryPoint=”CreateDirectory”, CallingConvention=CallingConvention.StdCa...
阅读全文