Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

changing some properties of a textbox .(Urgent)

hi all...
I have an .asp page and use vbscript as my server-side script lang.
now, I wanna to change some properties of the other text box field on my .asp page (<input type="textbox">) depending on a value which I get from another form and back to this form. you know, I want this: when other textbox on the form(InfoForm) changed by variable "dCrsCodFromCourseSearch ", I wanna to change the properties of "CrsName" textbox on the form.
but it doesn't work. here is my code:

<%
dCrsCodFromCourseSearch = Request("CrsCodFromCourseSearch")
if dCrsCodFromCourseSearch = "" then
dCrsCodFromCourseSearch = "-2"
else%>
<script language="javascript">
InfoForm.CrsName.value="";
InfoForm.CrsName.disabled = true;
InfoForm.CrsName.size="1";
</script>
end if
%>

Any suggetions please
[971 byte] By [Sonia] at [2007-11-11 7:01:08]