2009年12月28日
摘要: 最近一直跟DataGridView打交道,突然觉得很多技巧性的东西很模糊,经过最近的个人实验操作和从网上查到的资料把对DataGridView操作的一些技巧总结和借鉴了一下,总结如下:1、自定义列 Customize Cells and Columns in the Windows Forms DataGridView Control by Extending Their Behavior an... 阅读全文
posted @ 2009-12-28 10:55 峫噁Da兎兎 阅读(140) 评论(0) 推荐(0) 编辑
摘要: <asp:repeater runat=server id=repeater1> <headertemplate><table border=1 id=table11 runat=server width=785> <tr> </headertemplate> <itemtemplate><td width=100>... 阅读全文
posted @ 2009-12-28 10:51 峫噁Da兎兎 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 下面说一下程序的创建过程: 1、 创建一个WEB应用程序,将默认的WEB窗体改名为:Repeater.aspx。 2、 切换到“HTML”视图,输入下列代码: <%@ Page language="c#" Codebehind="Repeater.aspx.cs" AutoEventWireup="false" Inherits="TeachShow.Charpter... 阅读全文
posted @ 2009-12-28 10:41 峫噁Da兎兎 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 一、 <1>先在aspx的页面中加入这样的脚本 <script language="javascript"> function confirmInput() { if(window.confirm("若要进行单击确定,否则请单击取消")) { } else { window.event.returnValue = false; } } </sc... 阅读全文
posted @ 2009-12-28 10:40 峫噁Da兎兎 阅读(1414) 评论(0) 推荐(0) 编辑
摘要: <script language="jscript" type="text/javascript"> var flag=false;function FormatImg(ImgD){var image=new Image();image.src=ImgD.src;if(image.width>0 && image.height>0){flag=true;if... 阅读全文
posted @ 2009-12-28 10:39 峫噁Da兎兎 阅读(201) 评论(0) 推荐(0) 编辑
摘要: [注:页面上元素name属性和JavaScript引用的名称必须一致包括大小写,否则会提示你一个错误信息 "引用的元素为空或者不是对象"]========================================================================对象属性: document.title //设置文档标题等价于HTML的<title>标签documen... 阅读全文
posted @ 2009-12-28 10:37 峫噁Da兎兎 阅读(121) 评论(0) 推荐(0) 编辑
摘要: <link rel="shortcut icon" href="http://dd.a.5d6d.com/userdirs/b/f/51chi/attachments/month_0712/20071223_388d4e437bf6c7ebf12f21zWfHNpLfCX.attach" />放在头部信息处。红色的部分是ico文件的地址。所以你先要自己做一个16X16的ico文件,上传... 阅读全文
posted @ 2009-12-28 10:36 峫噁Da兎兎 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 大概步骤如下:1。在浏览器里启动脚本调试:在IE里菜单 工具->Internet 选项->高级页中,把Disable script debugging (Internet Explorer) 前的勾去掉2。然后在 VS 2005 里打开你的项目,把你要调试的网页设置为起始页,然后按F5,然后去 VS 2005 菜单 Debug-> Windows ->Script Expl... 阅读全文
posted @ 2009-12-28 10:32 峫噁Da兎兎 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键<table border oncontextmenu=return(false)><td>no</table> 可用于Table2. <body onselectstart="return false"> 取消选取、防止复制3. o... 阅读全文
posted @ 2009-12-28 10:31 峫噁Da兎兎 阅读(178) 评论(0) 推荐(0) 编辑
摘要: <INPUT TYPE=text NAME="hanbai_cd" SIZE=20 maxlength = 8 onkeydown=KeyDown()> function KeyDown(){ if (event.keyCode == 13) { event.returnValue=false; event.cancel = true; Form1.btnsubmit.click();... 阅读全文
posted @ 2009-12-28 10:30 峫噁Da兎兎 阅读(361) 评论(0) 推荐(0) 编辑