Kalyani Shevale

Kalyani Shevale

  • 573
  • 2.9k
  • 37.5k

if disabled class used but not woked

Sep 19 2019 7:47 AM
 
I have used Disabled class on button click but if the cursor goes in this button that time disabled icon displayed but functionality is working I don't want work this functionality of that disabled button 
please help me.
 
  1. @{  
  2.                                                                       if (Session["Role"].ToString().Equals("Head"))  
  3.                                                                       {  
  4.                                                                           if (check.IsActive == true)  
  5.                                                                           {  
  6.                                                                               <td>  
  7.                                                                                   <button type="button" class=Delete "btn btn-success disabled" href="javascript:;">Enablebutton>  
  8.                                                                               td>  
  9.                                                                           }  
  10.                                                                           else  
  11.                                                                           {  
  12.                                                                               <td>  
  13.                                                                                   <button type="button" class=Delete "btn btn-danger disabled" href="javascript:;">Disablebutton>  
  14.                                                                               td>  
  15.                                                                           }  
  16.                                                                       }  
  17.                                                                       else  
  18.                                                                       {  
  19.                                                                           if (check.IsActive == true)  
  20.                                                                           {  
  21.                                                                           <td>  
  22.                                                                               <button type="button" class="Delete btn btn-success" href="javascript:;">Enablebutton>  
  23.                                                                           td>  
  24.                                                                           }  
  25.                                                                           else  
  26.                                                                           {  
  27.                                                                           <td>  
  28.                                                                               <button type="button" class="Delete btn btn-danger" href="javascript:;">Disablebutton>  
  29.                                                                           td>  
  30.                                                                               }  
  31.                                                                           }  
  32.                                                                       }  
 

Answers (1)