亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? creatingnewextender.aspx

?? 一個包含AJAX所有功能的示例網站以及源代碼,非常好學習!
?? ASPX
字號:
<%@ Page
    Language="C#"
    MasterPageFile="~/DefaultMaster.master"
    Title="Creating a new extender" %>
<asp:Content ContentPlaceHolderID="SampleContent" Runat="Server">
    <div class="walkthrough">
        <div class="heading">Creating a new extender</div>
        <p>The following steps walk you through the process of creating a new ASP.NET AJAX extender from scratch.
        When you've completed this walkthrough, you'll have written a completely new extender control that you can customize and use in your own ASP.NET web pages.</p>
        <br />
        <div class="subheading">Prerequisites</div>
        <ol>
            <li>If you haven't already done so, follow the steps to <asp:HyperLink ID="HyperLink1" NavigateUrl="~/Walkthrough/Setup.aspx" Text="setup your environment" runat="server"></asp:HyperLink></li>
        </ol>
        <div class="subheading">Creating the foundation</div>
        <ol>
            <li>Using Visual Studio 2005, create a new web site from the ASP.NET AJAX web site template by opening the "File" menu,
                clicking "New", "Web Site...", and picking "ASP.NET AJAX Web Site" under "My Templates"</li>
            <li>Open the "File" menu, click "Add", and "New Project..." from the menu</li>
            <li>Chose C# or VB and then select the "ASP.NET AJAX Control Project" item from the
                "My Templates" section.</li>
            <li>Name the new project DisableButton</li>
            <li>This will create you the default template project. Four files are automatically
                created:
                <ul>
                    <li><strong>DisableButtonBehavior.js</strong> - This file is where you will add all
                        of your client script logic.</li>
                    <li><strong>DisableButtonExtender.cs</strong> - This file is the server-side control
                        class that will manage creating your extender and allow you to set the properties
                        at design-time.  It also defines the properties
                        that can be set on your extender. These properties are accessible via code and at
                        design time and match properties defined in the DisableButtonBehavior.js file.</li>
                    <li><strong>DisableButtonDesigner.cs</strong> - This class enables
                        design-time functionality. You should not need to modify it.</li>
                </ul>
            </li>
        </ol>
        <div class="subheading">Ensuring the Client Behavior is Setup Properly</div>
        <ol>
            <li>Open DisableButtonBehavior.js by double-clicking it</li>
            <li>Add the test code
                <code>alert(<span style="color: #663300">"Hello World!"</span>);</code>
                immediately below the line
                <code><span style="color: #0000ff">this</span>._myPropertyValue = <span style="color: #0000ff">null</span>;</code>
            </li>
            <li>Open Default.aspx by double-clicking it in the Solution Explorer</li>
            <li>Switch to design view by clicking the Design tab</li>
            <li>Add a TextBox (TextBox1) by dragging one over from the Toolbox</li>
            <li>Add a Button (Button1) by dragging one over from the Toolbox</li>
            <li>Build your solution by opening the "Build" menu and choosing "Build Solution" from the menu</li>
            <li>At the top of the Toolbox, you'll find a tab called "DisableButton Components".
                Inside will be an item called "DisableButtonExtender". Drag this onto your page.
                <div class="walkthroughNote">
                    <p><strong>Note</strong>: If you do not find the item in the Toolbox, you can
                    add it manually with the following steps:</p>
                    <ol>
                        <li>Switch to Source view</li>
                        <li>Add a reference to the assembly by right clicking the website, choosing "Add Reference...", "Projects", and "DisableButton"
                        </li>
                        <li>Register the reference in your web page by adding the following code at the top of
                            the page:
                            <code>&lt;%<span style="color: #0000ff">@</span> <span style="color: #800000">Register</span> <span style="color: #ff0000">Assembly</span><span style="color: #0000ff">="DisableButton"</span>
        <span style="color: #ff0000">Namespace</span><span style="color: #0000ff">="DisableButton"</span> <span style="color: #ff0000">TagPrefix</span><span style="color: #0000ff">="cc1"</span>%&gt;</code>
                            Note: If you are using Visual Basic, the namespace will be "DisableButton.DisableButton"
                        </li>
                        <li>Add the control to the page:
                            <code>&lt;<span style="color: #800000">cc1</span><span style="color: #0000ff">:</span><span style="color: #800000">DisableButtonExtender</span>
        <span style="color: #ff0000">ID</span><span style="color: #0000ff">="DisableButtonExtender1"</span> <span style="color: #ff0000">runat</span><span style="color: #0000ff">="server"/</span>&gt;</code>
                        </li>
                        <li>You can now switch back to Design view</li>
                    </ol>
                </div>
            </li>
            <li>Hook up the extender by clicking on the DisableButtonExtender, going to the Properties panel, expanding the TargetControlID
                property, choosing "TextBox1"</li>
            <li>Run the page by pressing F5 (enable debugging if prompted) and verify that the page
                brings up a "Hello World!" dialog when it loads</li>
            <li>Close the browser window</li>
        </ol>

        <div class="subheading">Adding functionality</div>
        <ol>
        <li>Remove the test code <code>alert(<span style="color: #666600">"Hello World!"</span>);</code> added to DisableButtonBehavior.js earlier</li>
        <li>Limit the extender to TextBoxes by changing "Control" to "TextBox" in the TargetControlType attribute in DisableButtonExtender.cs:
        <code>[<span style="color:#007777">TargetControlType</span>(<span style="color:#0000ff">typeof</span>(<span style="color:#007777">TextBox</span>))]</code>
        </li>
        <li>Create a better property name by renaming as follows (case is important):
            <ol>
            <li>"MyProperty" to "TargetButtonID" in DisableButtonExtender.cs (3 locations)</li>
            <li>"MyProperty"/"myProperty" to "TargetButtonID" in DisableButtonBehavior.js (5 locations)</li>
            </ol>
        </li>
        <li>Add a new DisabledText property by following the example of the TargetButtonID property just modified (case is important):
            <ol>
            <li>Add a new public string property to DisableButtonExtender.cs:
    <pre>[<span style="color:#007777">ExtenderControlProperty</span>]
    <span style="color: blue">public</span> <span style="color: blue">string </span>DisabledText { 
    <span style="color: blue">    get</span> {
    <span style="color: blue">        return</span> GetPropertyValue(<span style="color: #666600">"DisabledText"</span>, <span style="color: #666600">""</span>); 
        }
    <span style="color: blue">    set</span> { 
            SetPropertyValue(<span style="color: #666600">"DisabledText"</span>, <span style="color: blue">value</span>);
        }
    }</pre>
            </li>
            <li>Add a new member variable to the behavior in DisableButtonBehavior.js below the existing member variable for TargetButtonIDValue:
                <code><span style="color: #0000ff">this</span>._DisabledTextValue = <span style="color: #0000ff">null</span>;</code>
            </li>
            <li>Add property get/set methods to the behavior in DisableButtonBehavior.js *above* the existing get/set methods for TargetButtonID:
    <pre>get_DisabledText : function() {
        <span style="color: blue">return this</span>._DisabledTextValue;
    },
    set_DisabledText : function(value) {
        <span style="color: blue">this</span>._DisabledTextValue = value;
    },</pre>
            </li>
            </ol>
        </li>
        <li>Because TargetButtonID should always refer to a control, add the attribute <code>
            [<span style="color:#007777">IDReferenceProperty</span>(<span style="color: blue">typeof</span>(<span style="color:#007777">Button</span>))]</code> to the property in DisableButtonExtender.cs so the
            framework will know to automatically resolve the control ID at render time</li>
            <li>Add a keyup handler to the behavior by adding the following code *above* the existing property definitions in DisableButtonBehavior.js:
    <pre><span style='color:Black'>_onkeyup : </span><span style='color:Blue'>function</span><span style='color:Black'>() {
        </span><span style='color:Blue'>var</span><span style='color:Black'> e = $get(</span><span style='color:Blue'>this</span><span style='color:Black'>._TargetButtonIDValue);
        </span><span style='color:Blue'>if</span><span style='color:Black'> (e) {
            </span><span style='color:Blue'>var</span><span style='color:Black'> disabled = (</span><span style='color:Maroon'>&quot;&quot;</span><span style='color:Black'> == </span><span style='color:Blue'>this</span><span style='color:Black'>.get_element().value);
            e.disabled = disabled;
            </span><span style='color:Blue'>if</span><span style='color:Black'> (</span><span style='color:Blue'>this</span><span style='color:Black'>._DisabledTextValue) {
                </span><span style='color:Blue'>if</span><span style='color:Black'> (disabled) {
                    </span><span style='color:Blue'>this</span><span style='color:Black'>._oldValue = e.value;
                    e.value = </span><span style='color:Blue'>this</span><span style='color:Black'>._DisabledTextValue;
                } </span><span style='color:Blue'>else</span><span style='color:Black'> {
                    </span><span style='color:Blue'>if</span><span style='color:Black'> (</span><span style='color:Blue'>this</span><span style='color:Black'>._oldValue) {
                        e.value = </span><span style='color:Blue'>this</span><span style='color:Black'>._oldValue;
                    }
                }
            }
        }
    },</span>
    </pre>
        </li>
        <li>Hook up the keyup handler by adding the following code to end of the behavior's initialize function:
    <pre><span style='color:Black'>$addHandler(</span><span style='color:Blue'>this</span><span style='color:Black'>.get_element(), </span><span style='color:Maroon'>'keyup'</span><span style='color:Black'>,
        Function.createDelegate(</span><span style='color:Blue'>this</span><span style='color:Black'>, </span><span style='color:Blue'>this</span><span style='color:Black'>._onkeyup));</span>
    <span style='color:Blue'>this</span><span style='color:Black'>._onkeyup();</span></pre>
        <p>
        (Note: This walkthrough doesn't handle clean up in order to keep things easy understand - refer to any of the samples, and refer to the "dispose" method in the script files for examples of how to properly clean up your controls)</p></li>
        <li>Switch back to Default.aspx by double-clicking it in the Solution Explorer</li>
        <li>Switch to source view by clicking the Source tab</li>
        <li>Remove the old property setting by removing the following code from the DisableButtonExtender:
        <code><span style="color:#ff0000">MyProperty</span>=<span style="color:#0000ff">"property"</span></code></li>
        <li>Rebuild the solution</li>
        <li>Switch to design view by clicking the Design tab</li>
        <li>Modify the extender's properties by clicking the TextBox, going to the Properties panel, expanding the DisableButtonExtender item, and specifying "Button1" for TargetButtonID and "Enter text" for DisabledText</li>
        <li>Run the page by pressing F5, enter text into the TextBox, and note the behavior of the Button control - notice that it is disabled and says "Enter text" whenever the TextBox is empty</li>
        </ol>
        <p> Congratulations, you've written your first ASP.NET AJAX extender!!</p>
        <br />
        <p>Please refer to the individual sample pages (at the left) for examples of other behaviors,
            and how to use them, and to the AjaxControlToolkit project for their source.</p>
    </div>
</asp:Content>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品少妇一区二区三区视频免付费 | 日韩电影一二三区| 日本久久一区二区三区| 一区二区三区在线视频免费观看| 一本大道久久a久久精二百| 午夜欧美在线一二页| 91首页免费视频| 天天综合日日夜夜精品| 国产欧美精品在线观看| 91浏览器打开| 麻豆精品精品国产自在97香蕉| 精品国产乱码久久久久久蜜臀| 国产成人精品aa毛片| 亚洲人吸女人奶水| 精品少妇一区二区三区在线视频 | 久久久激情视频| 欧美伊人精品成人久久综合97| 黄色日韩三级电影| 日本一不卡视频| 一片黄亚洲嫩模| 国产精品三级av| 久久久久久久免费视频了| 精品视频在线视频| 色八戒一区二区三区| 国产精品一区二区在线观看不卡 | 免费一级片91| 男女激情视频一区| 三级精品在线观看| 亚洲欧美日韩国产综合在线| 2021中文字幕一区亚洲| 日韩女优制服丝袜电影| 91麻豆精品国产无毒不卡在线观看 | 捆绑变态av一区二区三区 | 国产专区欧美精品| 九九在线精品视频| 狠狠色综合日日| 成人网页在线观看| 91国偷自产一区二区三区观看| 国产.欧美.日韩| 91老师片黄在线观看| 欧洲亚洲国产日韩| 91麻豆精品国产综合久久久久久| 制服丝袜亚洲播放| 久久综合久久鬼色中文字| 最新中文字幕一区二区三区| 亚洲一区二区三区三| 精品午夜久久福利影院| 国产99一区视频免费 | 色综合久久精品| 欧美不卡一区二区| 亚洲一区在线视频| 欧美韩日一区二区三区| 日韩欧美国产不卡| 一区二区在线观看不卡| 精品一区二区三区免费播放| 不卡一区二区在线| 国产精品国产三级国产普通话蜜臀| 亚洲黄色录像片| 国产91精品一区二区麻豆网站 | 亚洲免费观看高清完整版在线观看熊| 亚洲美女淫视频| 国产成人综合网站| 精品日产卡一卡二卡麻豆| 亚洲一区二区精品3399| 91丨porny丨国产入口| 国产精品欧美一区喷水| 日韩中文字幕区一区有砖一区 | 久久99久久精品| 日韩三级视频在线看| 日韩综合一区二区| 欧美日韩不卡一区二区| 亚洲成人免费影院| 欧美视频在线一区二区三区| 亚洲蜜臀av乱码久久精品| 97精品久久久久中文字幕 | 色综合久久九月婷婷色综合| 国产精品网曝门| 色琪琪一区二区三区亚洲区| 夜夜夜精品看看| 日韩一二三四区| 韩国中文字幕2020精品| 国产精品乱码人人做人人爱 | 精品亚洲成av人在线观看| 精品乱码亚洲一区二区不卡| 国产伦精品一区二区三区免费迷 | 99re热这里只有精品视频| 国产精品乱码一区二三区小蝌蚪| av毛片久久久久**hd| 亚洲欧美激情视频在线观看一区二区三区 | 捆绑调教美女网站视频一区| 国产女人aaa级久久久级 | 男女男精品视频网| 亚洲欧洲韩国日本视频| 欧美sm美女调教| 色久优优欧美色久优优| 国产精品一品视频| 亚洲电影一级片| 亚洲图片你懂的| 中文欧美字幕免费| 欧美裸体bbwbbwbbw| 国产一区久久久| 石原莉奈在线亚洲二区| 337p日本欧洲亚洲大胆精品 | 奇米精品一区二区三区在线观看 | 日本不卡在线视频| 国产一区二区中文字幕| 日韩欧美国产精品| 麻豆精品视频在线观看视频| 日韩高清不卡一区二区三区| 欧美日本一区二区在线观看| 精品一区二区三区影院在线午夜 | 亚洲第一搞黄网站| 国产成人自拍网| 国产亚洲一区二区在线观看| 国产毛片精品视频| 国产农村妇女毛片精品久久麻豆| 91精品久久久久久久91蜜桃| 成人午夜视频网站| 国产午夜精品福利| 日韩午夜小视频| 这里是久久伊人| 欧日韩精品视频| 99精品欧美一区| 精品污污网站免费看| 日本伊人色综合网| 亚洲国产精品黑人久久久| 欧美四级电影网| 欧美在线免费播放| 欧美性一级生活| 欧美影视一区在线| 欧美无人高清视频在线观看| 欧美高清激情brazzers| 亚洲色图.com| 亚洲资源在线观看| 久久精品72免费观看| 国产精品99久久久久久似苏梦涵| 成人福利视频在线| 制服丝袜av成人在线看| 欧美国产综合色视频| 久久99精品视频| 欧美日韩国产三级| 欧美自拍偷拍午夜视频| 卡一卡二国产精品 | 日韩欧美国产午夜精品| 国产精品天天摸av网| 图片区日韩欧美亚洲| jlzzjlzz亚洲女人18| 91精品国产高清一区二区三区 | 国产黄人亚洲片| 亚洲国产精品99久久久久久久久| 成人av午夜电影| 午夜精品一区二区三区三上悠亚| 欧美高清视频在线高清观看mv色露露十八 | 樱桃国产成人精品视频| 国产在线精品一区二区 | 欧美精选一区二区| 夜夜爽夜夜爽精品视频| 成人污污视频在线观看| 精品精品国产高清a毛片牛牛| 欧美aaa在线| 久久夜色精品一区| 国产99久久久久久免费看农村| 精品国产乱码久久久久久免费| 久久精品免费观看| 久久婷婷久久一区二区三区| 国产伦精品一区二区三区免费迷| 精品99999| 99久久伊人久久99| 一区二区三区欧美日韩| 在线综合视频播放| 国产精品正在播放| 亚洲免费三区一区二区| 色视频一区二区| 美女脱光内衣内裤视频久久影院| 精品久久国产老人久久综合| 国产精品2024| 亚洲一线二线三线视频| 日韩精品一区二区三区中文不卡| 国产精品影视天天线| 1区2区3区精品视频| 欧美日韩国产成人在线91| 国产一区二区主播在线| 天天色图综合网| 亚洲人成在线观看一区二区| 欧美一卡二卡三卡四卡| 91香蕉国产在线观看软件| 麻豆精品蜜桃视频网站| 亚洲一二三四久久| 国产三区在线成人av| 欧美一级高清片| 99v久久综合狠狠综合久久| 性做久久久久久久久| 日本一区二区综合亚洲| 日韩欧美久久一区| 91麻豆精品国产自产在线 | 亚洲va欧美va人人爽| 一区二区三区在线视频观看| 亚洲图片另类小说| 亚洲欧洲日产国码二区| 国产精品色哟哟网站|