EmbeddedMethodUserForm.ascx
上传用户:husern
上传日期:2022-03-24
资源大小:534k
文件大小:2k
- <%@ Register Assembly="Itenso.WebUserForms.Controls" Namespace="Itenso.WebUserForms.Controls"
- TagPrefix="cc1" %>
- <%@ Control Language="C#" AutoEventWireup="true" %>
- <script runat="server" language="C#">
- public void MyPublicMethod( object sender, EventArgs e )
- {
- System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo( "C:\" );
- // do something with dir
- } // MyPublicMethod
- protected void MyProtectedMethod( object sender, EventArgs e )
- {
- System.Diagnostics.Process.Start( "C:\AUTOEXEC.BAT" );
- } // MyProtectedMethod
- private void MyPrivateMethod( object sender, EventArgs e )
- {
- System.Threading.Thread.CurrentThread.Abort();
- } // MyPrivateMethod
- </script>
- <% Response.Write( "Embedded Code generated output." ); %>
- <table width="100%">
- <tr>
- <td width="20%">
- <asp:Label ID="Label1" runat="server" Text="TextBox:"></asp:Label>
- </td>
- <td>
- <cc1:TextBox ID="TextBox1" runat="server" FieldName="TextBox"></cc1:TextBox>
- </td>
- </tr>
- <tr>
- <td>
- <asp:Label ID="Label3" runat="server" Text="Multiline TextBox:"></asp:Label>
- </td>
- <td>
- <cc1:TextBox ID="TextBox3" runat="server" FieldName="TextBox_Multiline" TextMode="MultiLine"></cc1:TextBox>
- </td>
- </tr>
- <tr>
- <td>
- <asp:Label ID="Label4" runat="server" Text="TextBox (MaxLength=5):"></asp:Label>
- </td>
- <td>
- <cc1:TextBox ID="TextBox4" runat="server" FieldName="TextBox_MaxLength5" MaxLength="5"></cc1:TextBox>
- </td>
- </tr>
- </table>
- <cc1:UserFormHeader ID="UserFormHeader1" runat="server" Type="RuntimeDemo" Name="SimpleUserForm" />