Accessing document from asp
am 28.02.2005 22:09:01 von jack
Hi,
I was wondering if it is valid to write code as follows:
<%If Response.Write (l_IsChecked) Then %>
document.frmMain.txt_CurrentOutlay.readOnly= "true"
<%End If%>
The idea is to use the value of the variable to make a text box read only.
If the
value is True then my intention is to make the text box read only.
Any help is appreciated in advance.
Re: Accessing document from asp
am 01.03.2005 03:46:49 von Tim Williams
Your page is just a bunch of text until it's rendered by a browser and so
your textbox has no properties on the server (unless you're using .NET
maybe, in which case you need a dot net group...)
You just need to modify the HTML source for the text box based on your "if"
test (which by the way looks very odd - you're testing if you can write to
the response??)
Maybe you meant Response.Form(l_IsChecked) ?
--
Tim Williams
Palo Alto, CA
"Jack" wrote in message
news:8AA139DC-1B1F-408B-A78E-53461C564B32@microsoft.com...
> Hi,
> I was wondering if it is valid to write code as follows:
> <%If Response.Write (l_IsChecked) Then %>
> document.frmMain.txt_CurrentOutlay.readOnly= "true"
> <%End If%>
>
> The idea is to use the value of the variable to make a text box read only.
> If the
> value is True then my intention is to make the text box read only.
> Any help is appreciated in advance.