ASP.NET»ùÓÚJQUERYµÄAJAXµÄÑéÖ¤µÇ¼£¨JSON£©
Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_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.w3.org/1999/xhtml" >
<head runat="server">
<title>Ö÷Ò³</title>
<script src="js/jquery-1.2.6.js" type="text/javascript"></script>
<script src="js/thickbox.js" type="text/javascript"></script>
<link type="text/css" href="css/thickbox.css" rel="Stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<div style="margin-left:auto; margin-right:auto;width:400px;">
<a href="ajaxLogin.html?height=120&width=250&modal=false" class="thickbox" title="ÇëµÇ¼">
ÎÒÒª½øÐÐJQUERYµÇ¼ÑéÖ¤</a>
<br />
Õ˺ţºadmin<br/>
ÃÜÂ룺admin<br />
</div>
</form>
</body>
</html>
login.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>
<!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>µÇ¼ÑéÖ¤</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
login.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.We
Ïà¹ØÎĵµ£º
¿Í»§¶Ë´úÀíµÄ×÷ÓÃ
ÔÚ¶ÔÏóÀï×öÁËÒ»¸ö±ê¼Ç
–“__type” = “ComplexType.Color”
·þÎñÆ÷¶Ë¸ù¾Ý±ê¼ÇÑ¡Ôñ·´ÐòÁл¯µÄÄ¿±êÀàÐÍ
¿É³öÏÖ“¶à̬”Ч¹û
Employee.cs Code£º
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Secu ......
²ÉÓÃAjax´«µÝ²ÎÊý¼ÓºÅ(+)ºÍÓë·ûºÅ(&)ʱºò£¬·þÎñ¶Ë»ñÈ¡µ½µÄ²ÎÊý²¢²»ÈçÒ⣡
(1) "+"ºÅ£ºJavaScript½âÎöΪ×Ö·û´®Á¬½Ó·û£¬ËùÒÔ·þÎñÆ÷¶Ë½ÓÊÕÊý¾Ýʱ"+"»á¶ªÊ§¡£
(2)"&"£ºJavaScript½âÎöΪ±äÁ¿Á¬½Ó·û£¬ËùÒÔ·þÎñÆ÷¶Ë½ÓÊÕÊý¾Ýʱ&·ûºÅÒÔºóµÄÊý¾Ý¶¼»á¶ªÊ§¡£
½â¾ö°ì·¨£ºÔÚ´«µ½·þÎñ¶Ë֮ǰÏȽ«²ÎÊýÖеÄ"+"ºÍ"&"·ûºÅ¶¼± ......
ÎÊÌâÃèÊö:
Êý¾Ý¿âA±íÖУº
ID Name
1 СÃ÷
2 Сǿ
3 СÕÅ
4 СÀî
5 С¹Ø
...
·Ö±ðÓÐLabel1,Label2... Label5 Îå¸ö±êÇ©£¬ÔõôÈÃÕâÎå¸ö±êÇ©Text°ó¶¨ÏÔʾA±íNameÁеÄÇ°5¸ö£¬¾ÍÊÇ˵Label1ÏÔʾСÃ÷£¬Label2ÏÔʾСǿ...
......
ÔÚEmailϵͳÖо³£»áÉÏ´«¶à¸öÎļþµ½·þÎñÆ÷£¬Óû§´ó¶àÏ°¹ßÒ»´ÎÉÏ´«ËùÓеÄÎļþ£¬¶ø²»ÊÇÖð¸öÉÏ´«£¬ÎÒÃÇ¿ÉÒÔʹÓÃjavascript¶¯Ì¬µØÌí¼ÓfileÔªËص½±íµ¥£¬È»ºóÔÚ·þÎñÆ÷¶Ë´¦ÀíÕâЩfile
Ч¹ûͼÈçÏÂ:
Ò³Ãæ´úÂëMutlileFileUpload.aspxÈçÏÂ:
view plaincopy to clipboardprint?
<%@ Page Language="C#" AutoEventWireup="true" C ......