var AppInvokes = {
160 //
161 // Pop up the layout contain some content.
162 PopUpContainerDiv: function() {
163 LogicalModules.PopUpContainerDiv();
164 },
165 //
166 // Hide the layout.
167 HideContainerDiv: function() {
168 LogicalModules.HideContainerDiv();
169 }
170 };
171
172 //
173 // Object for tests.
174 var AppTests = {
175
176 };
c)麼匈中?Default.aspx猟周式朔岬
i.
念岬?
1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebAppForCustomControlTest._Default" %>
2
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5 <%@ Register Src="~/WebUserControlFir.ascx" TagName="NewControl" TagPrefix="uu1" % >
6
7 <html xmlns="http://www.w3.org/1999/xhtml" >
8 <head runat="server">
9 <title>Web Custom Control Test</title>
10 <link type="text/css" href="Css/Base.css" rel="Stylesheet" />
11 <script src="Javascript/PositionCalculate.js" type="text/javascript"></script>
12 <script type="text/javascript">
13
14 function UpdateReturnStr(sReturn) {
15 var objText = document.getElementById ("txtReturnStr");
16 if (objText != null) {
17 objText.value = sReturn;
18 }
19 }
20
21 </script>
22 </head>
23 <body>
24 <form id="form1" runat="server">
25 <asp:ScriptManager ID="SM" runat="server"></asp:ScriptManager>
26 <div>
27 <label>Client Return Value: </label>
28 <input type="text" id="txtReturnStr" value="No Return, Client!" />
29 <asp:UpdatePanel ID="upd_Result" runat="server" UpdateMode="Conditional">
30 <ContentTemplate>
31 <asp:Label Text="Server Return Value:" runat="server"></asp:Label>
32
|