摘要: using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using ... 阅读全文
posted @ 2010-11-12 20:39 露水丛生 阅读(269) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Data.OleDb;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;namespace AccessDBHelper{ /// <summary> /// 阅读全文
posted @ 2010-11-12 20:37 露水丛生 阅读(364) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration;namespace DAL{ public static class DBHelper { private static... 阅读全文
posted @ 2010-11-12 20:33 露水丛生 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 使用jquery操作iframe 1、 内容里有两个ifame <iframe id="leftiframe"...</iframe> <iframe id="mainiframe..</iframe>leftiframe中jQuery改变mainiframe的src代码: $("#mainframe",parent.document.body).attr("s... 阅读全文
posted @ 2010-11-12 20:22 露水丛生 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 本站右侧的搜索就是利用google的站内搜索功能制作很多个人网站的站长都希望为自己的网站建立一个站内搜索引擎,但一不熟悉ASP、PHP、JSP等动态开发技术,另外自己建立站内搜索也需要空间支持相应的动态技术,所以常不得已放弃。其实,何不借用Google打造站内搜索引擎,来方便网友对自己网站的内容进行查找。 若想在某特定网站内搜索特定的内容(如搜索www.cfan.com.cn中包含关键字&ldqu... 阅读全文
posted @ 2010-11-12 20:12 露水丛生 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 症状: 使用IIS调试.aspx程序时IE提示以下错误: -------------------- 无法显示 XML 页。 使用 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。 -------------------------------------------------------------------------------- 处理资源 'http:... 阅读全文
posted @ 2010-11-12 19:21 露水丛生 阅读(356) 评论(0) 推荐(0) 编辑
摘要: Cookie (HttpCookie的实例)提供了一种在 Web 应用程序中存储用户特定信息的方法。例如,当用户访问您的站点时,您可以使用Cookie 存储用户首选项或其他信息。当该用户再次访问您的网站时,应用程序便可以检索以前存储的信息。ASP.NET中的cookie:创建Cookie方法 (1)//如果不设置失效时间,Cookie信息不会写到用户硬盘,浏览器关闭将会丢弃。ASP.NET中的co... 阅读全文
posted @ 2010-11-12 19:20 露水丛生 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 二、Web.config配置 1 <appSettings> 2 <add key="haikelasiConnectionString" value="Data Source=.;Initial Catalog=haikelasi;Persist Security Info=True;User ID=sa;Password=123456" /> 3 </appSet... 阅读全文
posted @ 2010-11-12 18:28 露水丛生 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 很多人都向在服务器端调用客户端的函数来操作,也就是在asp中调用javascript脚本中已经定义好的脚本函数。经过研究,发现了一些勉强的方法。 1. 用Response.Write方法写入脚本 比如在你单击按钮后,先操作数据库,完了后显示已经完成,可以在最后想调用的地方写上Response.Write("script type='text/javascript'alert();/script"); 这个方法有个缺陷就是不能调用脚本文件中的自定义的函数,只能调用内部函数,具体调用自定义的函数只能在Response.Write写上函数定义,比如Response.Write("scrip 阅读全文
posted @ 2010-11-12 17:27 露水丛生 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://hi.baidu.com/281305450/blog/item/e70cc344f714128cb3b7dc64.html存储过程检测用户名是否重复create proc checklogin@username nchar(20),@pwd nchar(20),@hasrow int outputasselect @hasrow=count(*) from users whe... 阅读全文
posted @ 2010-11-12 14:14 露水丛生 阅读(1156) 评论(0) 推荐(0) 编辑