记录小册子之控件开发

1. Enhanced Required Field Validator with an Image property

http://www.c-sharpcorner.com/UploadFile/deepakvraghavan/EnhancedRequiredFieldValidator08072007112220AM/EnhancedRequiredFieldValidator.aspx

Introduction:
Required Field Validator is being used from the initial version of ASP.NET and is a part of the standard validator controls in ASP.NET 2.0. When the validator is invalid, the required field is flagged with the literal in the "Text" property.  The current article proposes an additional Image property that can be used to flag the required field.
2.C# ASP.NET Server Control: Rollover Image Button
If you are working on a web project where there are a lot of image buttons that need to have rollover functionality you can extend the ImageButton control as demonstrated below. It takes less than 30 lines of code, but it makes a project much easier to maintain because the code for the rollovers is implemented in one place instead of in each seperate page so you don't have to dig through html to manage your rollovers.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值