- 博客(44)
- 资源 (10)
- 收藏
- 关注
原创 用脚本语言如何得到在select中被选中的选项的value和text
用脚本语言如何得到在select中被选中的选项的value和text document.formName.listName.options[document.formName.listName.selectedIndex].valuedocument.formName.listName.options[document.formName.listName.selectedIndex].text
2007-01-31 16:21:00 714
原创 Asp.net 2.0 用 FileUpload 控件实现多文件上传 用户控件(示例代码下载)
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.as
2007-01-30 20:11:00 586
原创 web标准常见问题大全 让FireFox与IE兼容
web标准常见问题大全 让FireFox与IE兼容【点评网站】【发布新闻】【申请专栏】【文章招领】www.8tops.com 2007-1-8 15:39:40 发布:郭文媒体:蓝色理想 作者:snwebsite 摘要: 随着越来越多的人开始接受web标准,一些和以往有些不太一样的地方也让许多新手痛苦不堪。以前可能简单设置一下甚至不用设置就能实现的样式,现在却始终
2007-01-30 14:49:00 2255
原创 实用的Web进度条
实用的Web进度条 1.建立进度条html页面progressbar.htmscript language="javascript"> function setPgb(pgbID, pgbValue) { if ( pgbValue 100 ) { //debugger; if (lblObj = document.getElement
2007-01-30 12:47:00 471
原创 Asp.net之数组应用
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.as
2007-01-29 10:07:00 655
原创 数据为空的时候显示表头
DataTable dt_Test = new DataTable();dt_Test = obj.GetList();if(dt_Test.Rows.Count == 0){ dt_Test.Rows.Add(dt.NewRow()); gv_Test. DataSource = dt_Test; gv_Test.DataBind();
2007-01-29 09:52:00 767
原创 asp.net 定制简单的错误处理页面
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.as
2007-01-29 09:25:00 468
原创 C# 数组
C# 数组在 C# 中,数组实际上是对象。System.Array 是所有数组类型的抽象基类型。提供创建、操作、搜索和排序数组的方法,因而在公共语言运行库中用作所有数组的基类。因此所有数组都可以使用它的属性和方法。 下面介绍一些常用属性和方法: Length属性:表示数组所有维数中元素的总数。 如: int [] number={1,2,3,4}; number.Lengt
2007-01-23 13:04:00 611
原创 ASP.NET 2.0的Page指令包括不滚动页面
3.3 ASP.NET 2.0的Page指令ASP.NET指令在每个ASP.NET页面中都有。使用这些指令可以控制ASP.NET页面的行为。下面是Page指令的一个例子: Inherits="_Default" %>在ASP.NET页面或用户控件中有11个指令。无论页面是使用后台编码模型还是内置编码模型,都可以在应用程序中使用这些指令。基本上,这些指令都是编译器编译页面
2007-01-23 11:02:00 1457 2
原创 Javascript useful custom function
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storei
2007-01-22 17:36:00 676
原创 js实现弹出式菜单
Posted on 2006-12-15 17:02 ddr888 阅读(182) 评论(0) 编辑 收藏 引用 网摘 所属分类: javascript代码 、css+xhtml <!--<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:dc="http://purl.org/dc/el
2007-01-20 13:51:00 3587
原创 VisualStudio2005英文版被SQL2005简体中文版汉化
今天装了SQL SERVER 2005 简体中文开发版,结果发现原来的VisualStudio2005英文版变成中文版了。有部分菜单未被汉化,如TEST发现是SQL SERVER 2005 安装后的结果,到VS2005安装目录发现路径 /Common7/IDE/ 的2052文件夹起作用。把这个文件夹删除后,就变后英文版了。内面还有一个1033文件夹,对应的是英文版的资源文件,我想这
2007-01-20 13:29:00 1565
原创 Web服务器 的根目录、Application 的根目录
有/无 ~ 的区别 System.Web.HttpContext.Current.Server.MapPath("/");System.Web.HttpContext.Current.Server.MapPath("~/"); Web服务器 的根目录
2007-01-20 10:30:00 4637
原创 .net中错误日志的写入
1 在.cs中执行存储过程 2 3 try 4 5 {} 6 7 catch(Exception ex) 8 { 9 cm.Connection.Close() ;10 qiao.Value ="fail";11 PublicUnit.SaveError(ex,this.Context,this.Request) ;12 }13 14 15 16 写日
2007-01-19 17:42:00 526
原创 改变大小控件
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.as
2007-01-18 22:30:00 471
原创 javascript动态增加、删除、填充表格内容
网上看到的例子,还不错,以后可能会用到。可以永久的修改单元格内容,但是单元格有属性的话就不知道怎么设置了。原文引用地址 function numberCells() {var count=0;for (i=0; i {for (j=0; j {document.all.mytable.rows(i).cells(j).innerText = count;count++;}}}function tb
2007-01-18 21:53:00 560
原创 读写xml所有节点个人小结
读: //打开某文件(假设web.config在根目录中) string filename=Server.MapPath("/") + @"WebApplication1/web.config"; XmlDocument xmldoc= new XmlDocument(); xmldoc.Load(filename); //得到顶层节点列表
2007-01-18 21:43:00 615
原创 把ASP应用中的Session传递给asp.net应用
最近做一个业务处理系统,因为它原有的用户系统使用ASP开发,在新的业务系统中使用了ASP.NET,ASP.NET APPLICATION要使用原来的ASP用户系统,于是问题出现了,ASP APPLICATION怎样才能让用户登录的状态及用户信息在ASP.NET中依然有效呢。于是我们考虑用构造FORM来自动提交传递ASP应用中的Session变量。例子如下ASP应用URL为http://127.
2007-01-18 21:32:00 538
原创 ASP.NET 网站路径
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.as
2007-01-18 20:54:00 565
原创 项目开发过程中对excel导入导出操作的总结
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.as
2007-01-18 20:20:00 739
原创 asp.net创建文件夹的IO类的问题
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.as
2007-01-18 19:36:00 629
原创 JavaScript图片上传前预览和限制图片格式
JavaScript图片上传前预览和限制图片格式关键词: 上传图片 预览图片 网页开发 按比例缩小图片尺寸 这是一则PHP图片上传的例子,这里想说明的是在上传图片前,当用户从本地或是远程选择图片时能够预览图片,由于上传的图片有大有小,宽窄不一,上传后我们都将对图片进行裁减处理,但是在上
2007-01-18 13:24:00 2440
原创 asp.net 实现购物车
asp.net 实现购物车 shoppingcart http://schemas.microsoft.com/intellisense/ie5"> ShowFooter="false" CellPadding="3" CellSpacing="0" Font-Name="Verdana" Fon
2007-01-16 13:22:00 1139 1
原创 验证码的三种做法[纯数字][纯汉字][字母/数字/汉字混合]C#
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.as
2007-01-16 13:20:00 537
原创 局域网QQ(C#版) 第三版
局域网QQ(V1.4) Posted on 2006-12-30 13:31 小y 阅读(274) 评论(2) 编辑 收藏 引用 网摘 所属分类: 串口通信&网络编程 <!--<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:dc="http://purl.org/dc/elements/
2007-01-16 13:18:00 1223
原创 javascript
13. 取得控件的绝对位置//Javascriptfunction getIE(e){var t=e.offsetTop;var l=e.offsetLeft;while(e=e.offsetParent){t+=e.offsetTop;l+=e.offsetLeft;}alert("top="+t+"/nleft="+l);}//VBScriptfunction getIE()dim t,l,a
2007-01-14 09:19:00 437
原创 类似QQ右下角消息提示3
类似QQ右下角消息提示3 /**//* ** ================================================================================================== ** 类名:CLASS_MSN_MESSAGE ** 功能:提供类似MSN消息框 ** 示例: -
2007-01-14 09:11:00 652
原创 类似QQ右下角消息提示2--自动刷新
类似QQ右下角消息提示2--自动刷新页面右下角弹出类似QQ或MSN的消息提示 /**//* ** ================================================================================================== ** 类名:CLASS_MSN_MESSAGE ** 功能:提供类
2007-01-14 09:10:00 792
原创 javascript实现划词标记+划词搜索功能
完整示例代码如下Untitled Documentdocument.body.onload=adddiv;document.onmousedown=recordobj;document.ondblclick=dbclick;document.onmouseup=showselect;var starobj,isdb=false,allow=true;function
2007-01-14 08:27:00 572
原创 页面跳转
首先 Response.Redirect("a.aspx"),在保存此页的数据后,服务器将页面直接转向到a.aspx。 此方法有个缺陷,就是转向后会丢失此页所有的Request的参数,并且此方法是需要Client发起一个请求。 在IIS 5.0 中引入了一个新的函数 Server.Transfer("a.aspx"),它很好地解决了转向后丢失此页Request参数的问题。并且由于它
2007-01-13 14:35:00 589
原创 自动回车提交
function sub() { if (event.keyCode==13) { document.all.btn.click(); } }
2007-01-11 10:36:00 901 1
原创 谈谈HtmlControl与WebControl的区别以及各自应该什么时候用
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.as
2007-01-10 09:44:00 960 1
原创 javascript事件触发列表与解说
事件触发列表与解说 一般事件 事件 浏览器支持 描述 onClick HTML: 2 | 3 | 3.2 | 4 Bro
2007-01-10 09:36:00 501
原创 客户端和服务端交互的东东
工作也有一个多月了,学了点客户端和服务端交互的东东,总结一下:一、要在客户端的事件中显示服务端代码才能拿到的数据,怎么办? 一般做法,比如有字符串,是从数据库才能拿到的,但是要在客户端点个button的时候弹出个框显示这个串。可以在服务器端这样给这个button加一个onclick事件。例如,在page的on_load事件中这样写: this.button.Attrib
2007-01-10 09:26:00 657
原创 css之自动换行
大家都知道连续的英文或数字能是容器被撑大,不能根据容器的大小自动换行,下面是 CSS如何将他们换行的方法! 对于div 1.(IE浏览器)white-space:normal; word-break:break-all;这里前者是遵循标准。 #wrap{white-space:normal; width:200px; }或者#wrap{word-break:break-all;wi
2007-01-09 19:39:00 714
原创 让textBox里面的value第一次消失
function ClearValue(obj){ if(obj.TempValue==) { obj.value=; } }function SetTempValue(obj){ obj.TempValue="随风倒上";} 在每个textbox的属性里面加一个 TempValue .如下:
2007-01-08 13:05:00 611
原创 sql server
在sql server中如果哪个字段为空,又想计算或者友好显示的话 用select isnull(Phone,dddd) from customer用isnull函数.oracle中用nal函数
2007-01-05 16:50:00 485
原创 ASP.Net 2.0 - Master Pages
ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps Posted by scott on 2006年4月11日 MasterPages are a great addition to the ASP.NET 2.0 feature set, but are not without the
2007-01-05 16:48:00 1313
原创 页面加载
在page_load之前执行的事件 override protected void OnInit(EventArgs e) { do something here base.OnInit(e); } 在服务器时间和客户段时间的时候,可以只要让Test()返回false,Button1_ServerCl
2007-01-05 16:11:00 547
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人