标题: ASP.NET问题。。 [打印本页] 作者: AhPang 时间: 2008-11-17 09:54 PM 标题: ASP.NET问题。。 请问ASP.NET C#里可以像VB.NET那样使用MouseMove或其他VB.NET的Events吗?
如果可以要怎样做呢?作者: goodday 时间: 2008-11-18 10:17 AM
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace @event
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Event HandlersNew to HTML 4.0 was the ability to let HTML events trigger actions in the browser, like starting a JavaScript when a user clicks on an HTML element. Below is a list of the attributes that can be inserted into HTML tags to define event actions. FF: Firefox, N: Netscape, IE: Internet Explorer
AttributeThe event occurs when...FFNIEonabortLoading of an image is interrupted134onblurAn element loses focus123onchangeThe user changes the content of a field123onclickMouse clicks an object123ondblclickMouse double-clicks an object144onerrorAn error occurs when loading a document or an image134onfocusAn element gets focus123onkeydownA keyboard key is pressed143onkeypressA keyboard key is pressed or held down143onkeyupA keyboard key is released143onloadA page or an image is finished loading123onmousedownA mouse button is pressed144onmousemoveThe mouse is moved163onmouseoutThe mouse is moved off an element144onmouseoverThe mouse is moved over an element123onmouseupA mouse button is released144onresetThe reset button is clicked134onresizeA window or frame is resized144onselectText is selected123onsubmitThe submit button is clicked123onunloadThe user exits the page123