G
Guest
I have a text area in which I have a client side javascript to process a "onclick". Because it is client side, I used a HtmlTextArea
<TextArea id="Summary" onmouseup="SumMouseUp()" style="WIDTH: 90%" name="Summary" rows="25" runat="server" /
Depending on the circumstance the user can sometimes edit the contents and at other time they cannot. There is a readonly parameter I can use at definition time
<TextArea id="Summary" onmouseup="SumMouseUp()" style="WIDTH: 90%" name="Summary" rows="25" runat="server" readonly /
but this is not "readonly=true" it is only "readonly" and in my VB codebehind I cannot set it
I tried using Summary.Disabled = True in the codebehind but this does not give me what I need since I have a "find" operation and when the textarea is disabled the user cannot see what is selected
How can I set this HtmlTextArea to ReadOnly on the fly (i.e., in the CodeBehind
<TextArea id="Summary" onmouseup="SumMouseUp()" style="WIDTH: 90%" name="Summary" rows="25" runat="server" /
Depending on the circumstance the user can sometimes edit the contents and at other time they cannot. There is a readonly parameter I can use at definition time
<TextArea id="Summary" onmouseup="SumMouseUp()" style="WIDTH: 90%" name="Summary" rows="25" runat="server" readonly /
but this is not "readonly=true" it is only "readonly" and in my VB codebehind I cannot set it
I tried using Summary.Disabled = True in the codebehind but this does not give me what I need since I have a "find" operation and when the textarea is disabled the user cannot see what is selected
How can I set this HtmlTextArea to ReadOnly on the fly (i.e., in the CodeBehind