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

推荐订阅源

T
Tenable Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V
Vulnerabilities – Threatpost
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Privacy International News Feed
H
Heimdal Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Secure Thoughts
MyScale Blog
MyScale Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LINUX DO - 最新话题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Cloudflare Blog
美团技术团队
Recorded Future
Recorded Future
T
Tailwind CSS Blog
Latest news
Latest news
Security Archives - TechRepublic
Security Archives - TechRepublic
Security Latest
Security Latest
Know Your Adversary
Know Your Adversary
Cloudbric
Cloudbric
Schneier on Security
Schneier on Security
I
Intezer
L
LINUX DO - 热门话题
P
Palo Alto Networks Blog
云风的 BLOG
云风的 BLOG
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Attack and Defense Labs
Attack and Defense Labs
人人都是产品经理
人人都是产品经理
L
LangChain Blog
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗
L
Lohrmann on Cybersecurity
S
SegmentFault 最新的问题
W
WeLiveSecurity
C
Cybersecurity and Infrastructure Security Agency CISA
S
Securelist
SecWiki News
SecWiki News
V2EX - 技术
V2EX - 技术
IT之家
IT之家
Cyberwarzone
Cyberwarzone
F
Full Disclosure
Spread Privacy
Spread Privacy
阮一峰的网络日志
阮一峰的网络日志

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