html.textbox saving charge asp.net mvc preview 5


i have strongly-typed mvc perspective control grateful ui where users emanate correct fan items. i'd means interpretation clientid creation, nonetheless edit, reflected ui.



to end, i have following line:



<%= html.textbox("client.clientid", viewdata.model.clientid, new 
{ @readonly =
(viewdata.model.clientid != zero && viewdata.model.clientid.length > 0
? "readonly" : "false")
} )
%>


it seems matter value i give readonly charge (even "false" ""), firefox ie7 quarrel read-only, annoyingly counter-intuitive. there nice, ternary-operator-based proceed dump charge totally required?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members