如何实现Asp.Net控件的双击事件
Asp.net控件(包括Web服务器控件和Html服务器控件)都没有双击事件,那么该如何将双击事件付给Asp.Net控件呢?我们以Lable控件为例。
一、首先加入控件,ID为Lable1,然后加入一个Button控件,ID为Button1,代码如下
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:Button ID="Button1" runat="server" Text="Button" />
二、在aspx页面加入javascript函数响应TextBox1双击事件:
<script type="text/javascript">
function ondbl()
{
document.getElementById(“Button1”).click(); //获取按钮句柄并触发提交动作
}
</script>
//
三、将双击事件及相应函数赋予TextBox控件。在aspx.cs文件的Page_Load函数中加入如下代码:
protected void Page_Load(object sender, EventA
相关文档:
Asp.Net XML操作基类(修改,删除,新增,创建)
2009-12-21 16:59
/**********************************************************************************
*
* 功能说明:XML处理基类
* 作者: 刘功勋;
* 版本:V0.1(C#2.0);时间:2006-12-13
*
* ******************************************************************** ......
FCKeditor相关资料简介:
官方网站http://www.fckeditor.net/
官方文档http://wiki.fckeditor.net/
下载地址http://www.fckeditor.net/download/default.html
官方演示http://www.fckeditor.net/demo/default.html
FCKEditor asp.net设置
下载:http://www.fckeditor.net
(要下载FCKeditor2.4.2.zip和FCKeditor.NET ......
Internet 类
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Net;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
namespace DownData
{
class internet
{
&nb ......
using System;
using System.Text;
using System.Web;
using System.IO;
namespace Chsword {
/// <summary>
/// 成幻互联缓存类
/// 邹健 2007.5
///  ......