Search this insane blog:

Tuesday, August 5, 2008

ASP with c#: make an object read-only

create an item as read-only



function setReadOnly(obj)
{
obj.readOnly = true
obj.style.color = "white"
obj.style.backgroundColor = "black"
obj.tabIndex = -1
}

if (form1.blaha.value == "blah ")
{
setReadOnly(form1.myobject)
}

No comments:

Post a Comment