How to disable a button more elegantly

前端 未结 8 868
面向向阳花
面向向阳花 2020-12-14 16:46

I have on one of my views the following razor code:

@if (item.PMApproved != true) {
                    

        
8条回答
  •  既然无缘
    2020-12-14 17:17

    Using asp.net mvc5 razor:

    @if(condition)
    {
       
    }
    else
    {
       
    }
    

    It prevents attempting to enable button from DevTools, because razor not visible for DevTools

提交回复
热议问题