惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
P
Privacy International News Feed
T
Tenable Blog
L
Lohrmann on Cybersecurity
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
S
Securelist
C
CXSECURITY Database RSS Feed - CXSecurity.com
Cisco Talos Blog
Cisco Talos Blog
T
The Exploit Database - CXSecurity.com
S
Schneier on Security
P
Privacy & Cybersecurity Law Blog
Vercel News
Vercel News
Cyberwarzone
Cyberwarzone
月光博客
月光博客
T
The Blog of Author Tim Ferriss
Scott Helme
Scott Helme
爱范儿
爱范儿
Stack Overflow Blog
Stack Overflow Blog
C
Cisco Blogs
aimingoo的专栏
aimingoo的专栏
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Proofpoint News Feed
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
LangChain Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
阮一峰的网络日志
阮一峰的网络日志
Simon Willison's Weblog
Simon Willison's Weblog
T
Tor Project blog
Security Latest
Security Latest
Blog — PlanetScale
Blog — PlanetScale
G
GRAHAM CLULEY
V
Vulnerabilities – Threatpost
博客园 - 三生石上(FineUI控件)
I
InfoQ
Spread Privacy
Spread Privacy
B
Blog RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
S
SegmentFault 最新的问题
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
C
CERT Recently Published Vulnerability Notes
A
About on SuperTechFans
博客园_首页
Engineering at Meta
Engineering at Meta
Project Zero
Project Zero
Latest news
Latest news

博客园 - kenly33

ORM及代码生成器和插件C#源码(最新版Kenly.DBFramework4.5.8.5) 處理RadioButtonList客戶端事件 - kenly33 - 博客园 对象关系映射架构(DBFramework)及代码生成器和插件(源码) 使對象支持自定義比較 統計分數 讀寫XML文檔 - kenly33 - 博客园 Visual Studio Team System简介 过滤某些字段重复的记录 MultiFileUploador GridViewNavigator Gridview梆定 兩個輸入框只允許一個輸入 Gridview中梆定得RadioButton Javascript 隱藏或顯示某區域 ASP.NET 2.0中合并 GridView 的表头单元格 VS2005 RESOURCE MANAGEMENT 鲸鱼哲学 Javascript彈出對話框 FxCop Rules
Atlas使用演练
kenly33 · 2006-10-24 · via 博客园 - kenly33

//供客户端调用的web service

public class WebService : System.Web.Services.WebService

{

    public WebService () {}

    [WebMethod]

    public string HelloWorld()

    {

        return "This an Atlas example." + "  ; Receive Time : " + DateTime.Now.ToString();

    }

    [WebMethod]

    public string HelloWorldWithPara(string para)

    {

        return "This an Atlas example .Parameter : " + para + " ; Receive Time : " + DateTime.Now.ToString();

    }

    [WebMethod]

    public string[] SplitCharacters(string prefixText)

    {

        if (prefixText == null || prefixText == "")

        {

            return null;

        }

        string[] cs = new string[prefixText.Length];

        for (int i = 0; i < cs.Length; i++)

        {

            cs[i] = prefixText.Substring(i, 1);

        }

        return cs;

    }

}

1 Call WebMethod

<script type="text/javascript" language="JavaScript">

         function DoSearchWithPara()

         {

           var SrchElem = document.getElementById("TextBox1");

           WebService.HelloWorldWithPara(SrchElem.value,OnRequestComplete);

         }

         function OnRequestComplete(result)

         {

           var RsltElem = document.getElementById("Label1");

           RsltElem.innerHTML = result;

         }

     </script>

   <div>

       <atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True"

            Visible="False">

            <Services>

                <atlas:ServiceReference Path="WebService.asmx" />

            </Services>

        </atlas:ScriptManager>

          <asp:TextBox id="TextBox1" runat="server">

          </asp:TextBox>&nbsp;

           <INPUT style="WIDTH: 125px" id="btnCallWebMethod" onclick="DoSearchWithPara()" type=button value="Call" />

           <asp:Label id="Label1" runat="server" Width="613px" Text="Label"></asp:Label>

    </div>

2 Auto complete

       <atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True"

            Visible="False">

            <Services>

                <atlas:ServiceReference Path="WebService.asmx" />

            </Services>

        </atlas:ScriptManager>

        <atlas:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" ServiceMethod="SplitCharacters"

                ServicePath="WebService.asmx" MinimumPrefixLength="1">

                <atlas:AutoCompleteProperties TargetControlID="TextBox1"  Enabled=true/>

         </atlas:AutoCompleteExtender>

3 UpdateProgress

<atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True"

            Visible="False">

            <Services>

                <atlas:ServiceReference Path="WebService.asmx" />

            </Services>

        </atlas:ScriptManager>

<atlas:UpdatePanel ID="UpdatePanel1" runat="server">

        <Triggers >

        <atlas:ControlEventTrigger ControlID="btnDoSomething" EventName="Click" />

        </Triggers>

         <ContentTemplate>

              <asp:Button ID="btnDoSomething" runat="server" Text="DoSomething" Width="124px" OnClick="btnDoSomething_Click" />

              <atlas:UpdateProgress ID="UpdateProgress1" runat="server">

                <ProgressTemplate>

                  <img src="Images/clock2.gif" />Contacting server...

                  <input id="abortButton" runat="server" type="button" value="Abort Request" />

                 </ProgressTemplate>

               </atlas:UpdateProgress>

           </ContentTemplate>

     </atlas:UpdatePanel>

4 DragOverlay

<atlas:DragOverlayExtender ID="DragOverlayExtender1" runat="server">

        <atlas:DragOverlayProperties Enabled=true TargetControlID="Image1" />

   </atlas:DragOverlayExtender>