使用复选框如何执行类函数 [英] using check box how to execute the class function

查看:82
本文介绍了使用复选框如何执行类函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Private void GetDetails()



//我在这里写了代码

}





私人无效课程详细信息()

{

//我在这里写了代码

}





i有两个复选框作为复选框1和复选框2





我有一个名为Show的按钮



i show button我必须编写如下代码



如果复选框为1则表示调用GetDetails

如果复选框为true则表示调用CourseDetails。



为什么我如何使用C#在asp.net中编写代码。





请注意它是Web应用程序。



问候,

Narasiman P.

Private void GetDetails()
(
//i written the code here
}


Private void CourseDetails()
{
//i written the code here
}


i have two check box as check box1 and check box2


I have one Button called Show

i show button i have to written the code as follows

if check box1 true means call the GetDetails
if check box2 true means call the CourseDetails.

for that how can i write the code in asp.net using C#.


note it is web application.

Regards,
Narasiman P.

推荐答案

On复选框选中事件,找出哪个选中复选框并相应地调用您的函数。
On Check box checked event, find out which checkbox was checked and call your function accordingly.


这篇关于使用复选框如何执行类函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆