Click to See Complete Forum and Search --> : Assign a value to a textbox in vbscript Error


cmptrnerd9
May 30th, 2007, 12:39 PM
I have a textbox on an asp.net. I am trying to assign a value to it via vbscript and I am getting the follow attached error.

Here is the VBScript code:



<script language=VBScript>
dim retval
retval = window.showModalDialog ("../../../custserv/WebPes/Misc/Launch.aspx?url=HomeCopyType.aspx",window,"dialogHeight: 270px; dialogWidth: 390px; dialogTop: px; dialogLeft: px; edge: Raised; center: Yes; help: No; resizable: No; status: No;")
if retval <> "" and not isnull(retval) then
Form1.PolicyNav1_txtQuoteType.value = retval
end if
</script>


Thanks,
Michael

PeejAvery
May 30th, 2007, 04:50 PM
Don't forget to use Document. And value should be Value.

Document.Form1.PolicyNav1_txtQuoteType.Value = retval