asp.net中服务器控件如何添加客户端的js事件?

来源:互联网 发布:dmg映像数据已损坏 编辑:程序博客网 时间:2024/04/29 18:10

Hi. Suppose you have 3 Radiobuttons.. You will be validating on some button control. Please find below how to do it step by step.

Step1: Setup your radio buttons on aspx page.

Step2: You have to declare some button/imagebutton or somthing else to validate. I suppose you have button cmdSave for validation.

Step3: in code behind of page On Page Load, you have to call javascript function of validation. i.e

Step4: You have to declare function checkFlag() in your aspx page. i.e

原创粉丝点击