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

推荐订阅源

GbyAI
GbyAI
爱范儿
爱范儿
Y
Y Combinator Blog
T
Tor Project blog
V
Visual Studio Blog
U
Unit 42
B
Blog RSS Feed
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
G
Google Developers Blog
I
InfoQ
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
Microsoft Azure Blog
Microsoft Azure Blog
T
The Blog of Author Tim Ferriss
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Fortinet All Blogs
人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
Recorded Future
Recorded Future
博客园_首页
罗磊的独立博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
量子位
P
Proofpoint News Feed
Jina AI
Jina AI
博客园 - 【当耐特】
S
Security @ Cisco Blogs
I
Intezer
MyScale Blog
MyScale Blog
Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy & Cybersecurity Law Blog
腾讯CDC
T
Tenable Blog
A
Arctic Wolf
T
Threat Research - Cisco Blogs
S
Securelist
Know Your Adversary
Know Your Adversary
Spread Privacy
Spread Privacy
C
Check Point Blog
NISL@THU
NISL@THU
Microsoft Security Blog
Microsoft Security Blog
V
Vulnerabilities – Threatpost

博客园 - 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>