摘要: DisplayMetrics dm = getResources().getDisplayMetrics(); int scale = dm.densityDpi; if (scale == 240) { // webView.getSettings().setDefaultZo... 阅读全文
posted @ 2015-04-17 16:09 徐本县 阅读(988) 评论(0) 推荐(0)
摘要: 1.当只用WebView的时候,最先注意的当然是在配置文件中添加访问因特网的权限;2.如果访问的页面中有Javascript,必须设置支持Javascript: webview.getSettings().setJavaScriptEnabled(true);3.如果希望点击链接由自己处理而不是新... 阅读全文
posted @ 2015-04-17 16:08 徐本县 阅读(727) 评论(0) 推荐(0)
摘要: 先介绍去掉标题栏的方法:第一种:也一般入门的时候经常使用的一种方法requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏注意这句一定要写在setContentView()方法的前面,不然会报错的第二种:在AndroidManifest.xml文件中... 阅读全文
posted @ 2015-04-17 09:48 徐本县 阅读(131) 评论(0) 推荐(0)
摘要: 分页存储过程:CREATE PROCEDURE [dbo].[getData] -- Add the parameters for the stored procedure here@tb varchar(150),@status varchar(800),@indexpage int,@endpa... 阅读全文
posted @ 2015-04-16 11:34 徐本县 阅读(294) 评论(0) 推荐(0)
摘要: 查询xml这个是我获取前台菜单的xmlprivate void getMenu(string[] cidlist, string[] idlist) { //获取菜单文件 string sPath = System.Web.HttpConte... 阅读全文
posted @ 2015-04-16 11:30 徐本县 阅读(211) 评论(0) 推荐(0)
摘要: 我们对宿主的概念、环境、特点做了文字性的介绍和概括,接下来我们将通过实例对这几种寄宿方式进行介绍。为了更好的说明各寄宿环境特点,本实例采用Http和net.tcp两种服务通讯方式,同时寄宿在不同的宿主中。程序结构如下:服务契约的接口和实现代码如下:usingSystem;usingSystem.Co... 阅读全文
posted @ 2015-04-09 14:32 徐本县 阅读(142) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Data.Services;using System.Data.Services.Common;using System.Linq;namespace CustomDataServi... 阅读全文
posted @ 2015-04-09 10:50 徐本县 阅读(202) 评论(0) 推荐(0)
摘要: 首先要写一个执行动态调用的方法:在里面实现反射调用。public static object ExecuteMethod(string pUrl,string pMethodName, params object[] pParams) { EndpointAddr... 阅读全文
posted @ 2015-04-09 10:48 徐本县 阅读(1021) 评论(0) 推荐(0)
摘要: public void NpoiExcel(DataTable dt, string title) { NPOI.HSSF.UserModel.HSSFWorkbook book = new NPOI.HSSF.UserModel.HSSFWorkbook();... 阅读全文
posted @ 2015-04-08 17:20 徐本县 阅读(241) 评论(0) 推荐(0)
摘要: public void d1() throws ReflectiveOperationException{ Class cl=Class.forName("com.daben.dt.class1"); class1 c1=(class1) cl.newInstance(); Method mt... 阅读全文
posted @ 2015-04-05 14:46 徐本县 阅读(151) 评论(0) 推荐(0)