Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 单击事件单选按钮_C#_Asp.net_Radio Button - Fatal编程技术网

C# 单击事件单选按钮

C# 单击事件单选按钮,c#,asp.net,radio-button,C#,Asp.net,Radio Button,如何在更改ASP.NET/C单选按钮检查时编写操作? 我需要在单击单选按钮时打开一个弹出窗口。将条件放置在OnCheckedChanged事件上: if(radiobutton.Checked) { // Place your code for POPUP mpeQCAttribute.Show(); // mpeQCAttribute is the ModalPopupExtender } 将条件放在OnCheckedChange

如何在更改ASP.NET/C单选按钮检查时编写操作?
我需要在单击单选按钮时打开一个弹出窗口。

将条件放置在OnCheckedChanged事件上:

   if(radiobutton.Checked)
   {
      // Place your code for POPUP
      mpeQCAttribute.Show();           // mpeQCAttribute is the ModalPopupExtender
   }

将条件放在OnCheckedChanged事件上:

   if(radiobutton.Checked)
   {
      // Place your code for POPUP
      mpeQCAttribute.Show();           // mpeQCAttribute is the ModalPopupExtender
   }

您必须在itemdatabound/rowdatabound事件中将javascript的弹出窗口与单选按钮绑定。或者,您可以使用jquery。使用jquery很容易,只需探索一下,您将不得不在itemdatabound/rowdatabound事件中使用单选按钮绑定javascript的弹出窗口。或者,您可以使用jquery。使用jquery很简单,只需探索一下我推荐使用的方法

我会推荐使用


您是否设置了AutoPostBack属性为true。如何打开AutoPostBack属性?@Karthik。它可以在代码隐藏中完成,比如radiobutton.AutoPostBack=true,或者在您的aspx文件中完成,如下所示:是!我打开了它,但当我点击radiobutton页面时,页面正在重新加载,但没有发生任何操作。您是否设置了AutoPostBack属性。如何打开AutoPostBack属性?@Karthik。它可以在代码隐藏中完成,比如radiobutton.AutoPostBack=true,或者在您的aspx文件中完成,如下所示:是!我打开了它,但当我点击radiobutton时,页面正在重新加载,但没有任何动作发生