摘要: 连接 Access 2007 的操作方法//无密码的连接字符串stringconStr = "Provider=Microsoft.Ace.OleDb.12.0;";conStr += @"Data Source=E:\数据库\XiaoZhen.accdb;";conStr += "Persist Security Info=False;";//有密码的连接字符串stringconStr = "Provider=Microsoft.Ace.OleDb.12.0;";conStr += @"Data Sou 阅读全文
posted @ 2013-05-30 17:17 shenrq163 阅读(147) 评论(0) 推荐(0) 编辑
摘要: MailMessagemsg=newMailMessage();msg.To.Add("XXXX@qq.com");//添加收件地址msg.From=newMailAddress("XXXXX@163.com",null,System.Text.Encoding.UTF8);//发送地址 msg.Subject="这是测试邮件";//邮件标题msg.SubjectEncoding=System.Text.Encoding.UTF8;//邮件标题编码msg.Body="邮件内容";//邮件内容msg.BodyEnco 阅读全文
posted @ 2013-05-25 00:16 shenrq163 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 前台:<div style="float: left"> <!-- <span style="font-weight: bold;">产品信息</span><br />--> <asp:ListBox runat="server" Height="350px" Width="230px" SelectionMode="Multiple" ID="lbAppAllList"></a 阅读全文
posted @ 2013-05-23 20:57 shenrq163 阅读(336) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=g 阅读全文
posted @ 2013-05-22 21:16 shenrq163 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 问题一:Response.Write 后连接Response.Redirect ,则Response.Write无法显示,直接跳转入Response.Redirect 的页面。解决方式:Response.Write("<script languge='javascript'>alert('成功修改'); window.location.href='index.aspx'</script>"); 如果,script内容中含有变量,那么解决方法是:string a=当前的记录变量;500){this.res 阅读全文
posted @ 2013-05-22 17:22 shenrq163 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 随着移动化设备在网络中的普及,智能手机、平板电脑这些电子产品越来越成为了当今上网使用最频繁的工具,所以网站拥有一个属于自己的APP客户端应用也势在必行!这里我就给大家介绍几个在线制作APP应用的网站。1、AppsGeyser网址:http://www.appsgeyser.comAppsGeyser是一个Android应用程序在线制作的网站,它可以帮你把任何网页内容变成一个Android的应用,傻瓜式,不需要编程基础,任何人都可以制作属于自己的APP。用帮你最简单的建造属于自己网站的手机应用。AppsGeyser操作极其简单,两三步就可完成自己blog的android应用。点击APP图标就可直 阅读全文
posted @ 2013-05-20 15:26 shenrq163 阅读(7645) 评论(0) 推荐(0) 编辑
摘要: 超级简单的方法,也不用写什么判断浏览器高度、宽度啥的。下面的两种方法自选其一就行了。一个是放在和iframe同页面的,一个是放在test.html页面的。注意别放错地方了哦。iframe代码,注意要写ID<iframe src="test.html" id="main" width="700" height="300" frameborder="0" scrolling="auto"></iframe>jquery代码1://注意:下面的代码是放在te 阅读全文
posted @ 2013-04-02 12:01 shenrq163 阅读(132) 评论(0) 推荐(0) 编辑
摘要: <iframe src="1.htm" name="ifrmname" id="ifrmid"></iframe>一、 用iframe的name属性定位 <input type="button" name="Button" value="Button" onclick="document.frames('ifrmname').location.reload()">或 <input type=&quo 阅读全文
posted @ 2013-04-02 11:58 shenrq163 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 优化数据检索速度最重要的就是避免全表检索;优化数据检索速度的最重要的方法就是数据索引以及避免数据检索中,会使索引无效的一些谓词应用;索引并非越多越好,一般一张数据表最多6个为宜。索引多增加在主键表、连接列(外键)、排序列等;为索引列增加默认值,尽量检索列为空值的情况;避名一些谓词的应用,比如:in/like 等;尽量避免使用where 1=1,因为会进行全表检索,影响效率;比较运算符的应用,多以直接判断为主;临时表的应用,有时也是一个提高检索速度的有效手段;检索时,需要显示多少列,则提取多少列,避名使用*等;数据展示如果不会频繁变化多使用缓存;个人的一些经验之谈,还请大家多多指教。 阅读全文
posted @ 2012-08-30 14:13 shenrq163 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1.创建用户数据表CREATE TABLE USERTEST(id number not null,uname varchar2(20) not null,upass varchar2(20) not null);2.创建自动增长的序列create sequence ID_SEQminvalue 1maxvalue 999999999999999999999999999start with 1increment by 1cache 20order;3.创建触发器,在执行插入操作的时候触发create or replace trigger uid_triggerbefore insert onU 阅读全文
posted @ 2012-07-18 11:47 shenrq163 阅读(154) 评论(0) 推荐(0) 编辑