|
|
| 首页 | 技术文章 | 软件下载 | 博客 | 论坛 | 精品教程 | 黑客动画 | 视频资源 | 在线服务 | 黑客游戏 | | ||||
|
|
||||||||
|
||||||||
|
|||||
| asp+语法介绍(四)----asp+的服务器端编程进介 | |||||
作者:不详 文章来源:CnXHacker.Net 点击数: 更新时间:2007-7-27 ![]() |
|||||
|
每一个asp+的服务器控件都有自己的属性,方法和事件。asp+的开发者现在可以清楚的修改和交互自己的页面 下面的这个例子,我们用到了两个服务器控件<asp:button runat=server> ,<asp:label runat=server> 和button 的 click 事件 <html> <head> <link rel="stylesheet"href="intro.css"> </head> <script language="VB" runat=server> Sub SubmitBtn_Click(Sender As Object, E As EventArgs) Message.Text = "Hi " & Name.Text & ", you selected: " & Category.SelectedItem.Text End Sub </script> <body> <center> <form action="intro6.aspx" method="post" runat="server"> <asp:adrotator AdvertisementFile="ads.xml" BorderColor="black" BorderWidth=1 runat="server"/> <h3> Name: <asp:textbox id="Name" runat="server"/> Category: <asp:dropdownlist id="Category" runat=server> <asp:listitem>psychology</asp:listitem> <asp:listitem>business</asp:listitem> <asp:listitem>popular_comp</asp:listitem> </asp:dropdownlist> <asp:button type=submit text="Lookup" OnClick="SubmitBtn_Click" runat="server"/> <p> <asp:label id="Message" runat="server"/> </form> </center> </body> </html> 这个程序的演示地址是 http://tutorial.superexpert.com/quickstart/aspplus/samples/webforms/intro/intro6.aspx 这个简单的例子,我们以前在例子3中也已经简单的演示过,但是我们现在用了一种简单和给为清晰的方法来演示新版本的服务器控件的功能 |
|||||
| 文章录入:IceRiver 责任编辑:IceRiver | |||||
| 【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 | |||||
| 最新热点 | 最新推荐 | 相关文章 | ||
| 突破性的ASP+技术 asp+语法介绍(五)----asp+的 asp+语法介绍(三)----asp+的 asp+语法介绍(二)-书写我们 asp+语法介绍(一) Cisco广域应用服务(WAAS)存 雾里看花!Vista SP1 Beta仍 Infostealer.Gampass病毒的手 winspool.exe - winspool - Chinasec可信监控系统内网安 |
网友评论:(只显示最新5条。评论内容只代表网友观点,与本站立场无关!) |
| 关于我们 - 版权声明 - 帮助(?) - 广告服务 - 联系我们 - 友情链接 - 用户注册 - | Powered by ICE RIVER - STUDIO |
| » CnXHacker.CoM | © CopyRight 2002-2006, CnXHacker.CoM™, Inc. All Rights Reserved. |