2015-09-05 24 views
0

我看了<%$, <%@, <%=, <%# ... what's the deal?#=運營商在asp.net webforms?

但最近我看到使用#=運算符的webforms中的標記。這是新的嗎?或者正在應用一些客戶端框架?我在哪裏可以得到更多的信息,請問它與其他運營商相比如何?:

<td><input type="text" name="ProductCountryProductName" value="#= (ProductName) ? ProductName : '' #" /></td> 
<td><input type="text" name="ProductCountryProductExpiryDate" value="#= formatDate(ProductExpiryDate) #" /></td> 
<td><input type="checkbox" name="ProductCountryIsAvailableEmployeeSite" #= IsAvailableEmployeeSite ? 'checked' : '' # /></td> 
<td><input type="checkbox" name="ProductCountryIsAvailableCorporateSite" #= IsAvailableCorporateSite ? 'checked' : '' # /></td> 
<td><input type="checkbox" name="ProductCountryIsAvailableBackOfficeSite" #= IsAvailableBackOfficeSite ? 'checked' : '' # /></td> 
<td><input type="checkbox" name="ProductCountryIsAvailableSalesOrder" #= IsAvailableSalesOrder ? 'checked' : '' # /></td> 
+2

第一:它是否工作? –

+1

這個例子來自哪裏? –

回答