%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="NET_Default" %!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"html xmlns="http://www.w 鼠标划过显示Div层,Div层里面的信息从数据库中取出 <!-- function showTip(oEvent,obj){ var oDiv = document.getElementById("divTip1"); NET_Default.ReturnTable(obj,callback); oDiv.style.visibility="visible"; oDiv.style.left = oEvent.clientX-25; oDiv.style.top =oEvent.clientY-35; } function hideTip(oEvent){ var oDiv = document.getElementById("divTip1"); oDiv.style.visibility = "hidden"; } function callback(res) { if(res!=null) { document.getElementById("divTip1").innerHTML=res.value; } } // --> 姓名 ')" onmouseout="hideTip(event)"> using System; using System.Data; using System.Configuration; using System.Collections; 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; public partial class NET_Default : System.Web.UI.Page { DataTable DT = new DataTable(); DataColumn DC = new DataColumn(); DataRow DR; protected void Page_Load(object sender, EventArgs e) { AjaxPro.Utility.RegisterTypeForAjax(typeof(NET_Default)); if (!Page.IsPostBack) { CreateDataTable(); for (int i = 0; i (str, Name) != -1) { res = "欢迎大家来到" + Name.Substring(0,Name.Length-1).ToString() + "http://blog.csdn.net/ws_hgo"; } else { res = "无!"; } return res; } }