AtlasÊÇʲô£¿asp.net+ajax
AtlasÊÇʲô£¿
atlas 2006-12-12 09:48 ÔĶÁ69 ÆÀÂÛ0
×ֺţº ´ó´ó ÖÐÖРСС
AtlasÊÇʲô£¿
ASP.NET”Atlas”ÊÇÒ»¸öеÄWeb¼¼Êõ¿ª·¢°ü£¬Ëü¼¯³ÉÁËÒ»Ì׷dz£´óµÄ¿Í»§¶Ë½Å±¾¿âʹµÃÓ빦ÄܷḻµÄ¡¢»ùÓÚ·þÎñÆ÷¿ª·¢Æ½Ì¨µÄASP.NET2.0½áºÏÔÚÒ»Æ𣬔Atlas”ÄÜÈÃÄ㿪·¢µÄWebÓ¦ÓÃÄܹ»Í¨¹ýÖ±½Óµ÷ÓÃWeb·þÎñÆ÷À´¸üÐÂÒ»¸öWebÒ³ÃæµÄÊý¾Ý¨D¨D²»ÐèÒªÔÚÒ³ÃæÍù·µ´«ËÍ£¨Ò²¾ÍÊDz»ÐèÒª¶à´ÎË¢ÐÂÒ³Ã棩¡£Ê¹ÓÔAtlas”,ÄãÄÜ×î´óµØÀûÓÃASP.NETºÍ·þÎñÆ÷¶Ë´úÂëÔÚä¯ÀÀÆ÷ÖÐÀ´×öÐí¶à¹¤×÷£¬Ê¹µÃÓиü¼Ó·á¸»µÄÓû§ÌåÑé¡£
“Atlas”ÄÜÈÃÄ㽨Á¢µÄÓ¦ÓóÌÐòÏà±ÈÓÚ´«Í³µÄWebÓ¦ÓóÌÐòÔÚÁ½¸ö¹Ø¼ü·½ÃæÓиüºÃµÄÐÔÄÜ££ÏìÓ¦ÂʺÍÓû§½Ó¿Ú(UI)¡£´«Í³µÄWebÓ¦ÓóÌÐòÔÚ¸üÐÂÊý¾Ý»òÕ߿ؼþʱҳÃæÐèÒªÒ»´ÎÍù¸´£¬ÕâÄܵ¼Ö³¤Ê±¼äµÄµÈ´ý¡£¶øÁíÒ»·½Ã棬”Atlas”£¬Í¨¹ý¼õÉÙÒ³ÃæÍù¸´µÄÐèÒªÏÔÖøµØÌáÉýÁËÓ¦ÓóÌÐòµÄÐÔÄÜ¡£
ÁíÍ⣬ÓÉÓÚ”Atlas”ÔÚ¿Í»§¶ËÖ´ÐÐÐí¶à´¦Àí£¬Õâ¾ÍʹµÃÄãÄܽ¨Á¢±È¸ü¼Ó·á¸»µÄUI£¬¸øÓû§Ò»ÖÖ³¬Ô½´«Í³WebÓ¦ÓóÌÐòµÄ³¬¼¶Óû§ÌåÑé¡£”Atlas”²»½ö¸øÄãÄÜÁ¦½¨Á¢ËùÓÐÓû§´Ó¹¦ÄܷḻµÄUIÊܵ½Ó°Ïì¶øÆÚ´ýµÄ¿Ø¼þºÍÌØÐÔ£¨ÀýÈçÍϺÍÀ£¬×Ô¶¯Íê³É£¬Êó±êÅÌÐý¶¯×÷µÈ¸ü¶à£©¡£¶øÇÒ¸ü¼ÓÖØÒªµÄÊÇ£¬ËüÄÜÈÃÄ㽨Á¢½»»¥Ê½µÄ°ó¶¨Êý¾ÝµÄ¿Ø¼þ£¬ÄÜÈÃÓû§ÅÅÐò£¬¸üУ¬»òÕ߸ü¸ÄËüÃǵÄÊý¾ÝµÄÊÓͼ£¬¶øÕâЩ£¬Ö»ÐèÉÙÁ¿»òÕßûÓÐÒ³ÃæÏò·þÎñÆ÷µÄÍù¸´¡£
ËäÈ»ASP.NET“Atlas”ÊÇÒ»¸öеļ¼Êõ°ü£¬Í¬Ê±Ò²ÊÇÖÖеķ½·¨£¬µ«ËüÓëʹÓÃAJAX¿ª·¢Ó¦ÓóÌÐòµÄÀíÄîÊÇÒ»Öµģ¬”Atlas”Ó¦ÓóÌÐòÊÇ¿çƽ̨ºÍÖ»ÐèÉÙÁ¿»òÕßûÓиü¸Ä¾Í¿ÉÒÔÔËÐÐÔÚÈκÎÏÖÓеÄä¯ÀÀÆ÷ÖС£“Atlas”Ð͵ÄÓ¦ÓóÌÐòµÄÀý×Ó°üÀ¨Î¢ÈíµÄVirtual Earth Õ¾µã£¬Î¢ÈíµÄOutlook Web Access emai¿Í»§¶Ë£¬»¹ÓÐStart.com¡£
½¨Á¢»ùÓÚAJAXµÄWebÓ¦ÓóÌÐòÊǸ´ÔÓ£¬»¹ÓеÃÒªÇóÄãÓдóÁ¿µÄ¿Í»§¶Ë½Å±¾µÄ֪ʶ¡£Òò´Ë£¬“Atlas”²»½ö½öÊÇÁíÍâÒ»ÖÖAJAXµÄʵÏÖ·½Ê½¡£Ïà·´£¬“Atlas”ÒÔÁ½ÖÖÖØÒªµÄ·½Ê½À©Õ¹ÁËAJAXµÄÀíÄî¡£Ê×ÏÈ£¬“Atlas” ¿Í»§¶Ë½Å±¾¿âͨ¹ýÏòAtlas¿ª·¢ÕßÌṩÕæÕýÃæÏò¶ÔÏóµÄAPIsºÍ×é¼þ¶ø¼«´óµØ¼ò»¯ÁË´´½¨¹¦ÄܷḻµÄUIºÍÔ¶³Ì½ø³Ìµ÷ÓÃÕâÀàÈÎÎñ¡£µÚ¶þ£¬“Atlas”ͨ¹ýÔÚASP.NET2.OÖÐÌṩһ¸ö¹¦ÄܷḻµÄ¼¯³ÉµÄ¿ª·¢Æ½Ì¨£¬“Atlas” ·þÎñÆ÷×é¼þ°üº¬ÁËASP.NET Web·þ
Ïà¹ØÎĵµ£º
ASP.NET Óû§ÅäÖÃÎļþ¹¦ÄÜÉè¼ÆΪÌṩµ±Ç°Óû§µÄ¶ÀÓÐÐÅÏ¢¡£ÅäÖÃÎļþ¿ÉÓÉͨ¹ýÉí·ÝÑéÖ¤µÄÓû§Ê¹Óã¬Ò²¿ÉÒÔÓÉÄäÃû£¨Î´¾Éí·ÝÑéÖ¤£©Óû§Ê¹Óá£
1¡¢Í¨¹ýÉí·ÝÑéÖ¤µÄÓû§
ĬÈÏÇé¿öÏ£¬Óû§ÅäÖÃÎļþÓ뵱ǰ HTTP ÉÏÏÂÎÄ£¨¿Éͨ¹ý HttpContext..::.Current ÊôÐÔ·ÃÎÊ£©µÄ User ÊôÐÔÖд洢µÄÓà ......
¼òµ¥µÄÃèÊöÏ DWR ÅäÖ㨱£ÃÜÐÒ飬Ôڴ˲»¹«¿ªÏîÄ¿Ãû³Æ£¬ÏîÄ¿Ïà¹ØÃû³ÆÈ«²¿ÓÃXXXX´úÌ棩
Ê×ÏÈ ·Ï»°²»ËµÁË ´ó¼Ò¶¼Ó¦¸ÃÀí½âDWRµÄÓô¦ ²»¶®µÄÈ¥°Ù¶È
±ØÒª°ü DWR.JAR ¹Ù·½ÏÂÔصØÖ·http://directwebremoting.org/dwr/download.html
Õâ¸öÏîÄ¿ÊÇÓÉ SSH+dwr+jquery+sitemesh+freemarker
WEB.XML
<!-- dwr -->
<serv ......
Èý²ã¼Ü¹¹(3-tier application) ͨ³£ÒâÒåÉϵÄÈý²ã¼Ü¹¹¾ÍÊǽ«Õû¸öÒµÎñÓ¦Óû®·ÖΪ£º±íÏֲ㣨UI£©¡¢ÒµÎñÂß¼²ã£¨BLL£©¡¢Êý¾Ý·ÃÎʲ㣨DAL£©¡£Çø·Ö²ã´ÎµÄÄ¿µÄ¼´ÎªÁË“¸ßÄÚ¾Û£¬µÍñîºÏ”µÄ˼Ïë¡£
1¡¢±íÏֲ㣨UI£©£ºÍ¨Ë×½²¾ÍÊÇÕ¹ÏÖ¸øÓû§µÄ½çÃ棬¼´Óû§ÔÚʹÓÃÒ»¸öϵͳµÄʱºòËûµÄËù¼ûËùµÃ¡£
2¡¢ÒµÎñ ......
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;
using Microsoft.Practi ......
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LeftMenu.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xht ......