博主资料

留言 加为好友 收藏

用户名:  dengsu888666

个人统计

用户名: dengsu888666
等级: 初来乍到
威望: 240
积分: 338
在线时间: 0 小时
日志总数: 19
评论数量: 793
访问次数: 243660
建立时间: 2006-07-16
RSS订阅       手机访问

最新评论

文章搜索

文章列表

友情链接

最近访问的人:

北京兄妹搬家货运..
2009-11-07 14:22:20
颠覆感性
2009-11-06 13:56:28
欢迎光临
2009-10-10 14:09:10
智者不惑
2009-09-29 11:41:34
pkuzeal的空间
2009-09-28 12:26:27
汉白玉
2009-09-25 23:23:46
供应广交会摊位-供..
2009-09-19 19:48:06
购买广交会摊位 买..
2009-09-19 19:14:49
广交会图纸 106届..
2009-09-18 23:00:37
广交会摊位转让,转..
2009-09-17 23:40:53

日志文章

2006年09月15日 14:49:16

用VS2005创建一个基本的Atlas Web应用(1)

  本文通过介绍Atlas的最新技术的使用,使你能够理解什么是Atlas技术,对学习Atlas有很大帮助。在这里你将要跟着我做一个基本的Atlas程序,下面的程序是使用Atlas控件通过客户端脚本远程调用Webservice,然后把结果显示到Web页面上,但不需要通过把页面提交到服务器端就可以完成。
  在作这个例子之前,你首先要安装NET Framework version 2.0和Visual Studio 2005开发工具,另外还要安装Atlas的程序包,你可以到微软的网站下载Atlas的安装程序。Atlas安装完后,会在你的开发工具的新建网站对话框模版列表中显示一个”Atlas”Web Site的Atlas模版项。你先选择这个模版项建一个Atlas的Web网站。开发工具会自动产生一个配置好的Web.config文件。具体操作步骤如下:
1.选择“文件”----“新建“----“网站”菜单项
2.在新建网站对话框中,选择'Atlas' Web Site模版项
3.在“位置”选项中选择“文件系统”,选择一个路径和所用语言。然后确定。如下图
图11


4.打开解决方案资源管理器,选择当前解决方案,点击鼠标右键选择快捷菜单项“添加新项”,选择Web服务,并命名为HelloWorldService.asmx,选择语言,点击添加。
图22


  在Web服务代码里添加一个HelloWorld方法,用于返回服务器日期和时间,这个方法的参数为string类型,返回值为按一定格式要求显示的string类型。完整的Web服务代码如下:

  C#代码如下:

<%@ WebService Language="C#" Class="Samples.AspNet.HelloWorldService" %>

using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
namespace Samples.AspNet {

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class HelloWorldService : System.Web.Services.WebService {

  [WebMethod]
  public string HelloWorld(String query)
  {
  string inputString = Server.HtmlEncode(query);
  if(!String.IsNullOrEmpty(inputString))
  {
    return String.Format("Hello, you queried for {0}. The "
      + "current time is {1}", inputString, DateTime.Now);
  }
  else
  {
    return "The query string was null or empty";
  }
  }
}
}
 
VB代码如下:

<%@ WebService Language="VB" Class="Samples.AspNet.HelloWorldService" %>

Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols

Namespace Samples.AspNet

<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
Public Class HelloWorldService
  Inherits System.Web.Services.WebService

  <WebMethod()> _
  Public Function HelloWorld(ByVal query As String) As String
  Dim inputString As String = Server.HtmlEncode(query)
  If Not String.IsNullOrEmpty(inputString) Then
    Return String.Format("Hello, you queried for {0}. The " _
      & "current time is {1}", inputString, DateTime.Now)
  Else
    Return "The query string was null or empty"
  End If
  End Function

End Class
End Namespace

5.添加一个Web窗体,命名为AtlasScript.aspx,在添加Web窗体时不要选择“把代码放在单独的文件中”选择项。
6.切换到页代码浏览,复制下面代码粘贴到你的@Page标记下面。

1.     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2.       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3.    
4.     <html xmlns="http://www.w3.org/1999/xhtml">
5.      
6.       <head id="Head1" runat="server">
7.       <atlas:ScriptManager runat="server" ID="scriptManager">
8.         <services>
9.         <atlas:servicereference path="~/HelloWorldService.asmx" />
10.         </services>
11.       </atlas:ScriptManager>
12.       <style type="text/css">
13.         body { font: 11pt Trebuchet MS;
14.           font-color: #000000;
15.           padding-top: 72px;
16.           text-align: center }
17.      
18.         .text { font: 8pt Trebuchet MS }
19.       </style>
20.      
21.       </head>
22.       <body>
23.       <form runat="server">
24.       <div>
25.         Search for
26.         <input id="SearchKey" type="text" />
27.         <input id="SearchButton" type="button" value="Search"
28.         onclick="DoSearch()" />
29.       </div>
30.       </form>
31.       <hr style="width: 300px" />
32.       <div>
33.       <span id="Results"></span>
34.       </div> </body>
35.     </html>

  在上面的代码中有一个很重要的Atlas控件ScriptManager,, 它用来处理页面上的所有Atlas组件以及局部页面的更新,并生成相关的客户端脚本,在ScriptManager控件中声明了要调用的Web服务的URL,没有这个声明,在脚本中将不能调用这个Web服务。关于ScriptManager,将在以后的文章中作详细介绍。
7.现在要添加调用Web服务的脚本代码。复制下面的脚本粘贴到AtlasScript.aspx中。这个脚本的主要作用是调用Web服务,然后把返回的结果显示到页面上。

1.     <script type="text/javascript">
2.    
3.     function DoSearch()
4.     {
5.       var SrchElem = document.getElementById("SearchKey");
6.       Samples.AspNet.HelloWorldService.HelloWorld(SrchElem.value, OnRequestComplete);
7.     }
8.    
9.     function OnRequestComplete(result)
10.     {
11.       var RsltElem = document.getElementById("Results");
12.       RsltElem.innerHTML = result;
13.     }
14.    
15.     </script>

    DoSearch脚本函数用于调用Web服务,把用户在TexBox中的输入值和OnRequestComplete回调函数传入Web服务HelloWorld方法,回调函数必须要有,因为是异步调用,必须要有一种机制通知客户端调用完成后的返回值。当异步调用Web方法完成后OnRequestComplete将会被调用。这个回调函数通过参数result获得返回值,这个返回值就是调用Web服务的方法.HelloWorld的返回值。
在@ Page下面完整的代码如下:

1.     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2.       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3.      
4.     <html xmlns="http://www.w3.org/1999/xhtml">
5.      
6.     <head id="Head1" runat="server">
7.       <atlas:ScriptManager runat="server" ID="scriptManager">
8.         <services>
9.         <atlas:servicereference path="~/HelloWorldService.asmx" />
10.         </services>
11.       </atlas:ScriptManager>
12.       <style type="text/css">
13.         body { font: 11pt Trebuchet MS;
14.           font-color: #000000;
15.           padding-top: 72px;
16.           text-align: center }
17.      
18.         .text { font: 8pt Trebuchet MS }
19.       </style>
20.      
21.     </head>
22.     <body>
23.       <form runat="server">
24.       <div>
25.         Search for
26.         <input id="SearchKey" type="text" />
27.         <input id="SearchButton" type="button"
28.         value="Search"
29.         onclick="DoSearch()" />
30.       </div>
31.       </form>
32.       <hr style="width: 300px" />
33.       <div>
34.       <span id="Results"></span>
35.       </div>
36.       <script type="text/javascript">
37.      
38.       function DoSearch()
39.       {
40.         var SrchElem = document.getElementById("SearchKey");
41.         Samples.AspNet.HelloWorldService.HelloWorld(SrchElem.value,
42.         OnRequestComplete);
43.       }
44.      
45.       function OnRequestComplete(result)
46.       {
47.         var RsltElem = document.getElementById("Results");
48.         RsltElem.innerHTML = result;
49.       }
50.      
51.       </script>
52.     </body>
53.     </html>

  现在你可以运行AtlasScript.aspx进行测试了。运行后在Search for后的文本框中输入一些内容再点击Search按钮,可以看到调用Web服务方法HelloWorld的返回内容显示到了页面上,但整个页面并没有刷新,他和以往的Web程序相比,主要是在性能上有了很大的提升,这就是Ajax技术目前比较流行的一个主要原因。


  我的下一篇文章:用VS2005创建一个Atlas Web应用程序(2)

类别: Ajax.net开发技术 |  评论(17) |  浏览(9468) |  收藏
一共有 17 条评论
17楼 [匿名]wow power level 2009年10月14日 14:45:53 Says:
http://www.wowgold-leveling.com cheap wow power leveling
http://www.wow-power-lvl.com wow power leveling
http://www.cheap-powerleveling.com world of warcraft power leveling
http://www.wowgold-leveling.com/wow-honor-powerleveling.html Honor Power Leveling
http://www.wowgold-leveling.com/wow-honor-powerleveling.html wow honor farming
http://www.wowgold-leveling.com/buy-wow-honor-points-powerleveling.html buy wow honor points
http://www.cheap-powerleveling.com/buy-wow-honor-points-powerleveling.html wow honor points
http://www.cheap-powerleveling.com/wow-honor-powerleveling.html buy wow honor points
http://www.wow-power-lvl.com/WoW-Honor-Points-PowerLeveling.html wow honor points
http://www.cheap-powerleveling.com/Aion-Power-Leveling.html Aion power leveling
http://www.cheap-powerleveling.com/Aion-Power-Leveling.html Aion Skill Power leveling
http://www.cheap-powerleveling.com/Aion-Power-Leveling.html abyss points powerleveling
http://www.wow-power-lvl.com/Aion-Power-Leveling.html Aion power leveling
http://www.wow-power-lvl.com/World-of-Warcraft-Gold-US.html buy wow gold
http://www.cheap-powerleveling.com/Buy-WOW-Gold.html cheap wow gold
http://www.cheap-powerleveling.com/Buy-WOW-Gold.html wow gold
http://www.cheap-powerleveling.com/Buy-WOW-Gold.html wow gold farming
http://www.cheap-powerleveling.com/Buy-WOW-Gold.html world of warcraft gold
16楼 [匿名]006 2009年07月20日 11:23:11 Says:
<a href=http://www.yfcj.com.cn>股票软件</a>
<a href=http://www.yfcj.com.cn/html/dazhihui/>大智慧</a>
<a href=http://www.yfcj.com.cn/html/tonghuashun/>同花顺</a>
<a href=http://www.yfcj.com.cn/html/chaoguruanjian/>炒股软件</a>
<a href=http://www.yfcj.com.cn/html/tongdaxin/>通达信</a>
<a href=http://www.yfcj.com.cn/html/qianlonggupiaoruanjian/>钱龙</a>
<a href=http://www.yfcj.com.cn/html/zhengquanzhixing/>证券之星</a>
<a href=http://www.yfcj.com.cn/html/zhinanzhen/>指南针</a>
15楼 [匿名]ak 2009年07月20日 11:22:51 Says:
http://www.cf8.com.cn/
<a href=http://www.cf8.com.cn/adtopview.html>赢富数据</a>
<a href=http://www.cf8.com.cn/adgpfxrj.html>股票分析软件</a>
<a href=http://www.cf8.com.cn/addzh.html>大智慧</a>
<a href=http://www.cf8.com.cn/adths.html>同花顺</a>
<a href=http://www.cf8.com.cn/adgphq.html>股票行情软件</a>
<a href=http://www.cf8.com.cn/adgprj.html>股票软件</a>
<a href=http://www.cf8.com.cn/adcgrj.html>炒股软件</a>
<a href=http://www.cf8.com.cn/adtopview.html>TopView</a>
<a href=http://www.cf8.com.cn/adtopview.html>超赢数据</a>
<a href=http://bbs.cf8.com.cn/>股票论坛</a>
<a href=http://bbs.cf8.com.cn/>财经论坛</a>
<a href=http://www.cf8.com.cn/adtdx.html>通达信</a>
<a href=http://www.cf8.com.cn/adql.html>钱龙</a>
<a href=http://www.cf8.com.cn/adzqzx.html>证券之星</a>
<a href=http://www.cf8.com.cn/adznz.html>指南针</a>
<a href=http://www.cf8.com.cn/adgpzs.html>股票知识</a>
14楼 [匿名]wow gold 2009年03月02日 14:44:05 Says:
http://www.wowgoldme.com
http://www.mmorpgvip.com

13楼 [匿名]wow gold 2009年03月02日 14:43:45 Says:
While others <a href="http://www.wowgoldme.com">wow gold</a> are raising <a href="http://www.mmorpgvip.com">wow gold</a> prices, extending delivery <a href="http://www.wowgoldme.com">buy wow gold</a> times and running out of inventory MMOGCART is <a href="http://www.mmorpgvip.com">buy wow gold</a> giving you More, Delivering it Faster, <a href="http://www.wowgoldme.com">cheap wow gold</a> and giving it to you for LESS Money. <a href="http://www.mmorpgvip.com">cheap wow gold</a> Simply select your server <a href="http://www.wowgoldme.com">world of warcrft gold</a> from the list on the LEFT and <a href="http://www.mmorpgvip.com">world of warcrft gold</a> decide how much you want to buy. <a href="http://www.mmorpgvip.com">wow power leveling</a> The more you buy the more you SAVE! <a href="http://www.mmorpgvip.com">power leveling</a> Prices have been cut by up to 15% so Stock up Now and Save.Take <a href="http://www.mmorpgvip.com">world of warcraft power leveling</a> advantage and stock up before this amazing deal goes away...
12楼 [匿名]czwzf016 2008年09月23日 14:54:28 Says:
czwzf016
czwzhufeng
[url=http://www.mygamestock.com]wow gold[/url]
[url=http://www.mygamestock.com/PLindex.aspx]wow gold[/url]
[url=http://www.mygamestock.com/Cheap.009.Ever_Quest.aspx]wow gold[/url]
[url=http://www.mygamestock.com/Power.019.World_of_Warcraft_-_EU.aspx]wow gold[/url]
[url=http://www.mygamestock.com]wow power leveling[/url]
[url=http://www.mygamestock.com/PLindex.aspx]wow power leveling[/url]
[url=http://www.mygamestock.com]warhammer online gold[/url]
[url=http://wowmine.org]wowmine[/url]
[url=http://www.quntan.com.cn]格力空调[/url]
[url=http://www.quntan.com.cn/product.asp?brand=2]格力空调[/url]
[url=http://www.quntan.com.cn]格力中央空调[/url]
[url=http://www.quntan.com.cn/product.asp?brand=2]格力中央空调[/url]
[url=http://www.if-expo.com]上海展览公司[/url]
[url=http://www.if-expo.com/about.htm]上海展览公司[/url]
[url=http://www.fenfa.sh.cn]SAT培训[/url]
[url=http://www.fenfa.sh.cn/v.asp?id=611]SAT培训[/url]
[url=http://www.fenfa.sh.cn]上海SAT培训[/url]
[url=http://www.fenfa.sh.cn/v.asp?id=612]上海SAT培训[/url]
[url=http://www.pumppump.cn]螺杆泵[/url]
[url=http://www.pumppump.cn/cplgb_2.htm]螺杆泵[/url]
[url=http://www.pumppump.cn]油泵[/url]
[url=http://www.pumppump.cn/cpjyb_1.htm]油泵[/url]
[url=http://www.pumppump.cn]隔膜泵[/url]
[url=http://www.pumppump.cn/cpgmb_2.htm]隔膜泵[/url]
[url=http://justtourist.net/0815/wow.html]wow gold[/url]
[url=http://kontanke.com/0815/wow.html]wow gold[/url]
[url=http://limanxi.com/0815/wow.html]wow gold[/url]
[url=http://lumenxi.com/0815/wow.html]wow gold[/url]
[url=http://lanpom.com/0815/wow.html]wow gold[/url]
[url=http://raxplace.com/0818/wow.html]wow gold[/url]
[url=http://remenci.com/0818/wow.html]wow gold[/url]
[url=http://rumancer.com/0818/wow.html]wow gold[/url]
[url=http://rumenc.com/0818/wow.html]wow gold[/url]
[url=http://thepomb.com/0818/wow.html]wow gold[/url]
[url=http://robusting.net/Warhammer-leveling.html]wow gold[/url]
[url=http://superiorityok.cn/Warhammer-leveling.html]wow gold[/url]
[url=http://consummater.cn/Warhammer-leveling.html]wow gold[/url]
[url=http://wejubilation.cn/Warhammer-leveling.html]wow gold[/url]
[url=http://hotspotwo.cn/Warhammer-leveling.html]wow gold[/url]
[url=http://perfectwow.cn/Warhammer-leveling.html]wow gold[/url]
[url=http://wellliking.com/Warhammer-leveling.html]wow gold[/url]
[url=http://www.mygamestock.com/wowczw004.html]wow gold[/url]
[url=http://www.mygamestock.com/wowczw005.html]wow gold[/url]
[url=http://www.mygamestock.com/wowczw006.html]wow gold[/url]
[url=http://mygamestock.blogs.experienceproject.com]wow gold[/url]
[url=http://360.yahoo.com/mygamestock]wow gold[/url]
[url=http://blog.mediachina.net/blog.php?uid_3816.html]格力中央空调[/url]
[url=http://blog.house365.com/blog.php?uid=342561]格力空调[/url]
[url=http://www.586tv.com/blog/blog.php?uid=113]螺杆泵[/url]
[url=http://justsoso1212.blog.hexun.com]油泵[/url]
[url=http://www.ezfood.org/blog.php?uid=50]隔膜泵[/url]
11楼 [匿名]xlloidi123 2008年08月28日 14:07:21 Says:
xlloidi123
xll19880204xll
[url=http://www.oforu.com]wow gold[/url]
[url=http://www.oforu.com/Sitemap.htm]wow gold[/url]  
[url=http://brogame.com]wow gold[/url]  
[url=http://itemrate.com]wow gold[/url]
[url=http://www.iae-longre.com/country/kor/]韩国留学[/url]
[url=http://www.iae-longre.com/country/kor/]留学韩国[/url]
[url=http://www.iae-longre.com/News/2008/6-13/104713.html]留学荷兰[/url]
[url=http://www.iae-longre.com/country/aus/aus_g_g.html]澳洲留学[/url]
[url=http://www.iae-longre.com/country/aus/aus_g_g.html]留学澳洲[/url]
[url=http://www.iae-longre.com/News/2007/7-31/114710.html]意大利留学[/url]
[url=http://www.iae-longre.com/COUNTRY/NZL/]新西兰留学[/url]
[url=http://www.oforu.com/AboutUs.aspx]wow gold[/url]  
[url=http://www.oforu.com/S3Default.aspx]wow gold[/url]  
[url=http://www.oforu.com/FindPassword.aspx]wow gold[/url]  
[url=http://www.oforu.com/ContactUs.aspx]wow gold[/url]  
[url=http://www.oforu.com/Faq.aspx]wow gold[/url]  
[url=http://www.oforu.com/SignUp.aspx]wow gold[/url]  
[url=http://www.oforu.com/PLindex.aspx]wow gold[/url]  
[url=http://www.oforu.com/WhyReg.aspx]wow gold[/url]  
[url=http://www.oforu.com/Support.aspx]wow gold[/url]  
[url=http://www.oforu.com/Accountindex.aspx]wow gold[/url]  
[url=http://www.oforu.com/Fantasy-XI-Titan.html]wow gold[/url]  
[url=http://www.oforu.com/buy-earthda-lant.html]wow gold[/url]  
[url=http://www.oforu.com/Power.014.Maple_Story.aspx]wow gold[/url]  
[url=http://www.oforu.com/Cheap.030.Lord_of_the_Rings_Online.aspx]wow gold[/url]  
[url=http://www.oforu.com/Power.1.World_of_Warcraft_US.aspx]wow gold[/url]
[url=http://www.oforu.com/buy-world-of-warcraft-account.htm]wow gold[/url]  
[url=http://www.oforu.com/world-of-warcraft-account.htm]wow gold[/url]  
[url=http://www.oforu.com/buy-wow-account.htm]wow gold[/url]  
[url=http://www.oforu.com/wow-account.htm]wow gold[/url]  
[url=http://www.oforu.com/cheap-world-of-warcraft-gold.htm]wow gold[/url]  
[url=http://www.oforu.com/cheap-wow-gold.htm]wow gold[/url]  
[url=http://www.oforu.com/buy-world-of-warcraft-gold.htm]wow gold[/url]  
[url=http://www.oforu.com/buy-wow-gold .htm]wow gold[/url]  
[url=http://www.oforu.com/world-of-warcraft-gold.htm]wow gold[/url]  
[url=http://www.oforu.com/wow-gold.htm]wow gold[/url]
[url=http://goldmance.com/wow-account.htm]wow gold[/url]                      
[url=http://gontanksell.com/wow-account.htm]wow gold[/url]                      
[url=http://lemancesell.com/wow-account.htm]wow gold[/url]            
[url=http://limancer.com/wow-account.htm]wow gold[/url]                
[url=http://lemance.com/wow-account.htm]wow gold[/url]                
[url=http://lomanxi.com/wow-account.htm]wow gold[/url]                
[url=http://tuboty.com/wow-account.htm]wow gold[/url]                
[url=http://wowgoldmany.net/wow-account.htm]wow gold[/url]              
[url=http://wowgoldmany.com/wow-account.htm]wow gold[/url]                
[url=http://wowgoldmany.org/wow-account.htm]wow gold[/url]
[url=http://goldmance.com/wow-gold.htm]wow gold[/url]                
[url=http://gontanksell.com/wow-gold.htm]wow gold[/url]                
[url=http://lemancesell.com/wow-gold.htm]wow gold[/url]                  
[url=http://limancer.com/wow-gold.htm]wow gold[/url]                      
[url=http://lemance.com/wow-gold.htm]wow gold[/url]                
[url=http://lomanxi.com/wow-gold.htm]wow gold[/url]                
[url=http://tuboty.com/wow-gold.htm]wow gold[/url]                
[url=http://wowgoldmany.net/wow-gold.htm]wow gold[/url]            
[url=http://wowgoldmany.com/wow-gold.htm]wow gold[/url]                
[url=http://wowgoldmany.org/wow-gold.htm]wow gold[/url]
10楼 液下泵 2008年08月20日 09:02:29 Says:
rwefgwui96
iuewuqsa69
[url=http://itemrate.com]wow gold[/url]
[url=http://itemrate.com/Cheap.027.Gaia_online.Gold.aspx]wow gold[/url]
[url=http://itemrate.com/CHEAP.013.WORLD_OF_WARCRAFT_-_US.ASPX]wow gold[/url]
[url=http://itemrate.com/world-of-warcraft-gold.aspx]wow gold[/url]
[url=http://itemrate.com/Cheap.014.Maple_Story.aspx]wow gold[/url]
[url=http://itemrate.com/Cheap.007.Guild_Wars.aspx]wow gold[/url]
[url=http://itemrate.com/Register.aspx]wow gold[/url]
[url=http://www.kcmp.cn]自吸泵[/url]
[url=http://www.kcmp.cn/zixibeng.html]自吸泵[/url]
[url=http://www.shshenyang.com]自吸泵[/url]
[url=http://www.shshenyang.com/products/zx.htm]自吸泵[/url]
[url=http://www.kcmp.cn]液下泵[/url]
[url=http://www.kcmp.cn/yexiabeng.html]液下泵[/url]
[url=http://www.shshenyang.com]液下泵[/url]
[url=http://www.kcmp.cn]油泵[/url]
[url=http://www.kcmp.cn/YOUBENG-2.HTML]油泵[/url]
[url=http://www.kcmp.cn/youbeng.html]油泵[/url]
[url=http://www.shshenyang.com]管道泵[/url]
[url=http://www.shshenyang.com/products/qby.htm]管道泵[/url]
[url=http://www.topchinatrip.com]China Travel[/url]
[url=http://www.topchinatrip.com]China Tours[/url]
[url=http://www.topchinatrip.com/CityTours.php]China Tours[/url]
[url=http://www.topchinatrip.com]beijing Tours[/url]
[url=http://www.topchinatrip.com/Cityindex.php?city_id=6]beijing Tours[/url]
[url=http://www.topchinatrip.com]beijing Travel[/url]
[url=http://www.topchinatrip.com/Cityindex.php?city_id=6]beijing Travel[/url]
[url=http://www.topchinatrip.com]shanghai Tours[/url]
[url=http://www.topchinatrip.com/Cityindex.php?city_id=8]shanghai Tours[/url]
[url=http://www.topchinatrip.com]shanghai Travel[/url]
[url=http://www.topchinatrip.com/Cityindex.php?city_id=8]shanghai Travel[/url]
[url=http://itemrate.com/wowyqq61.html]wow gold[/url]
[url=http://itemrate.com/wowyqq62.html]wow gold[/url]
[url=http://itemrate.com/wowyqq63.html]wow gold[/url]
[url=http://itemrate.com/wowyqq64.html]wow gold[/url]
[url=http://itemrate.com/wowyqq65.html]wow gold[/url]
[url=http://alpha-bpo.com/0728/]wow gold[/url]
[url=http://chibaozi.com/0728/]wow gold[/url]
[url=http://gegejiejie.com/0728/]wow gold[/url]
[url=http://foxlace.com/0728/]wow gold[/url]
[url=http://wowgoldbuy.org/0804/]wow gold[/url]
[url=http://tobethewinner.com/0804/]wow gold[/url]
[url=http://salewowgold.net/0804/]wow gold[/url]
[url=http://wowgoldhouse.org/0804/]wow gold[/url]
[url=http://wowgoldhouse.net/0804/]wow gold[/url]
[url=http://huodao100.com.cn/0813/index20.html]wow gold[/url]
[url=http://wowgold345.com/index.html]wow gold[/url]
[url=http://wowgoldebuy.com/index.html]wow gold[/url]
[url=http://wowgoldebuy.net/index.html]wow gold[/url]
[url=http://ahbpo.com/index.html]wow gold[/url]
[url=http://ahgate.com/index.html]wow gold[/url]

9楼 [匿名]guest 2007年04月13日 12:28:20 Says:
楼主,我按您的代码运行时老有一个错误,网上找了很久也没找到解决办法,能帮帮我么?
错误1命名空间并不直接包含诸如字段或方法之类的成员
<%@WebService Language="C#" Class="Samples.AspNet.HelloWorldService"%>
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
namespace Samples.AspNet{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class HelloWorldService:System.Web.Services.WebService {
public string HelloWorld(String query)
{
string inputString = Server.HtmlEncode(query);
if(!String.IsNullOrEmpty(inputString))
{
  return String.Format("Hello, you queried for {0}. The "
    + "current time is {1}", inputString, DateTime.Now);
}
else
{
  return "The query string was null or empty";
}
}
}
}



源错误:



行 1: <%@WebService Language="C#" Class="Samples.AspNet.HelloWorldService"%>
行 2: using System;
行 3: using System.Web;

只是初学,请问是什么原因?
8楼 [匿名]guest 2007年03月31日 08:12:06 Says:
现在微软已经发布了正式版asp.net ajax v1.0。与早期Atlas用法上有区别。
7楼 [匿名]guest 2007年02月27日 11:25:23 Says:
运行ASPAJAXExtSetup.msi 安装时没有install "Atlas" Visual Studiao Project Template 复选项,Atlas程序包是ASPAJAXExtSetup.msi 吗?
6楼 [匿名]guest 2007年01月26日 13:56:48 Says:
安装启动后,点击下一步后,有一个选项:install "Atlas" Visual Studiao Project Template。把它选上就可以了。
我也沒有啊?重裝沒找到。
5楼 [匿名]guest 2007年01月12日 15:56:35 Says:
<script language="javascript">
    var g_panel;
    var g_selColor;
    var g_label;
   
    function pageLoad()
    {
      // 创建Atlas Sys.UI.Control 类实例
        g_panel=new Sys.UI.Control($('panel'));
        g_panel.initialize();
        g_panel.set_cssClass('normal');


请教:在我的机器上安装的是ASPAJAXExtSetup.msi(2006-12月版的),但安装之后,运行您所给的示例,在Ie中浏览时javascript代码段报错如下:出现运行时间错误,是否调试?行69,错误:缺少对象。 然后,就看不到预期的效果。

我觉着是不是缺少某个脚本来解析Sys.UI.Control,但也不知该引用哪个脚本。

请教您,希望不吝赐教!谢谢!
我的邮箱是: gaozs@owlsoft.com.cn
4楼 [匿名]guest 2006年09月29日 08:28:23 Says:
不错。近期正在学习ATLAS。这些文章对我的帮助很大。我将会继续关注!有什么问题我会上来提的,到时还希望版主能帮忙搞定一下。谢谢!
3楼 [匿名]guest 2006年09月24日 15:21:31 Says:
我是新手,对我很有帮助,我正在努力学习

我会继续关注你的
2楼 [匿名]guest 2006年09月15日 18:38:25 Says:
安装启动后,点击下一步后,有一个选项:install "Atlas" Visual Studiao Project Template。把它选上就可以了。
1楼 [匿名]guest 2006年09月15日 18:17:30 Says:
请楼主回答
发表评论
看不清楚,换一张