ASP Web Server Controls.ppt
《ASP Web Server Controls.ppt》由会员分享,可在线阅读,更多相关《ASP Web Server Controls.ppt(20页珍藏版)》请在麦多课文档分享上搜索。
1、ASP Web Server Controls,Please use speaker notes for additional information!,Label Web Server ControlASP.NET Label Web Server Control,Label Web Server Control,Label Web Server ControlASP.NET Label Web Server ControlSimple example of a label control!,My code. Output Results of viewing source.,Label W
2、eb Server Control, Testing the Label Web Server ControlSub Page_LoadlblHeader.Text=“Testing the Label Web Server Control“lblDate.Text=“Today is: “ & now() End SubASP.NET, Testing the Label Web Server ControlASP.NETTesting the Label Web Server Control Today is: 6/24/2003 4:56:55 PM, Testing the Label
3、 Web Server ControlSub Page_LoadlblHeader.Text=“Testing the Label Web Server Control“lblDate.Text=“Today is: “ & now() End SubASP.NET,My code is shown here.,The output is shown here.,When you click on view source, you see the code below., Testing the Label Web Server ControlSub Page_Load(sender As O
4、bject, e As EventArgs)lblHeader.Text=“Testing the Label Web Server Control“lblDate.Text=“Today is: “ & now() End SubASP.NET,Label Web Server Control,Textbox Web Server ControlSub NameSub(sender As Object, e As EventArgs)lblGreet.text = “Hi, “ & txtFst.text & “ “ & txtLast.text End SubASP.NET Textbox
5、 Web Server ControlFirst Name Last Name ,Button & Textbox Web Server Controls,Textbox Web Server ControlASP.NET Textbox Web Server ControlFirst Name Last Name Hi, Susan Ash,List before I checked anything.,List after I checked the three components of my sentence.,Here I unclicked the horse and you ca
6、n see the sentence is simply jumped over the fence.,Now I clicked The dog and the sentence got reformed starting with the first clicked element and moving sequentially through the last clicked item., Make sentences using List ItemsSub makeSentence(sender As Object, e As EventArgs)dim ctmySentence.Te
7、xt=“Your sentence: “for ct =0 to phrases.Items.Count-1if phrases.Items(ct).Selected thenmySentence.Text=mySentence.Text & “ “ & phrases.Items(ct).Textend ifnext End SubSub clear(Source As Object, e As EventArgs)dim ptfor pt = 0 to phrases.Items.Count-1if phrases.Items(pt).Selected thenphrases.Items(
8、pt).Selected = Falseend ifnextmySentence.Text=“ End Sub,Each time this is executed, it checks all of the check boxes and concatenates each box that is checked to the mySentence structure.,This code clears by checking to see if the item is checked and if it is setting it to false. Obviously, I did no
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ASPWEBSERVERCONTROLSPPT
