Asp.net Ajax ²»Äܰó¶¨Ê¼þ
HTML code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" language="javascript">
function showMe(){
alert("I was common javascript!");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<script language="javascript" type="text/javascript">
var myLabel = null;
Sys.Application.add_load(page_load);
function page_load(sendere,e){
alert("page load!");
myLabel = $get("myLabel");
$addHandler(myLabel,"onclick",onclickMe);
}
function onclickMe(){
alert("I am aspnet Ajax Libary!");
Ïà¹ØÎÊ´ð£º
ллÁË£¬¸ßÊÖÃÇ¿ìÀ´°¡~
¹À¼ÆÃ»²å¼þʲôµÄ²»Ðаɡ£
ÎÒÒ²Òª лл¸÷λ·¢ÎÒÒ»·Ýliujintaohfbb@163.com
ллÁË Ò»¶¨Òª·¢ÎÒ°¡
¶÷ÕÒµ½ÁË,±ðÍüÁ˶
401533349@163.com
http://download.csdn.n ......
ÎļþÉÏ´«Ê±ÔõÑùÏÔʾ½ø¶ÈÌõ ×îºÃ¸ø¸öDemo лÁË~£¡
ÓÃAjax°É£¬AjaxÓÐÀý×Ó
Óà ajaxtoolkit ÀïÃæµÄ´úÂ룬ÓÐÀý×Ó
ÒýÓÃ
ÓÃAjax°É£¬AjaxÓÐÀý×Ó
¶¥
http://topic.csdn.net/u/20091010/23/4bb5017a-ac75- ......
Åöµ½Âé·³ÁË£¬ÔÚ°²È«->´´½¨Óû§Ê±ÀÏÊÇ˵£º¡°Óöµ½´íÎó¡£Çë·µ»ØÉÏÒ»Ò³²¢ÖØÊÔ¡£¡±°Ù¶ÈÀÏÊÇ˵·¾¶Öв»ÄÜÒª#ʲôµÄ£¬ÎÒµÄÍøÕ¾Â·¾¶D:/my-docs/VisualStudio2005/WebSites/sdjs/17/2/Ó¦¸ÃûÎÊÌâ°¡£¿£¿
ÖØÐ½¨Ò»¸öÍøÕ¾Ò²Õ ......
ÎÒÔÚ Page_Load ÀïдÁË
if(!IsPostBack){
GridView1.DataSource=GroupManager.GetGroups();//GetGroups ·µ»ØµÄÊÇ IList<Group>
GridView1.DataBind();
}
¿ÉÎÒÔÚ Submit_Click Àïд´ú ......
ËÖªµÀ£¬×îºÃÊÇʵÀý£¬²âÊÔ¹ýµÄ¸üºÃ£¬Ð»Ð»·ÖÏí£»
http://www.92dotnet.com/showtopic-428.aspxC# code:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using Sy ......