| Response.Write(MyText.Style("width")) End Sub </script> <input type="text" id="MyText" runat="server"/> <script language="JScript" runat="server" > function Page_Load(sender : Object, E : EventArgs) : void { MyText.Style("width") = "90px"; Response.Write(MyText.Style("width")); } </script> <input type="text" id="MyText" runat="server"/> <script language="C#" runat="server"> void Page_Load(Object Src, EventArgs E ) { Style style = new Style(); style.BorderColor = Color.Black; style.BorderStyle = BorderStyle.Dashed; style.BorderWidth = 1;
MyLogin.ApplyStyle (style); MyPassword.ApplyStyle (style); MySubmit.ApplyStyle (style); } </script>
Login: <ASP:TextBox id="MyLogin" runat="server" />/<p/> Password: <ASP:TextBox id="MyPassword" TextMode="Password" runat="server" /> View: <ASP:DropDownList id="MySelect" runat="server"> ... </ASP:DropDownList>
上一页 [1] [2] [3] |