CustomValidator does not accept RegisterStartupScript

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Ricardo Maciel (mailboxrmaciel)
Date: 01/25/05


Date: Mon, 24 Jan 2005 23:41:01 -0800

Hi,

I am using CustomValidator and want to keep the client-side function in a .js
file. I was unable to make this work with Page's RegisterStartupScript --
it produces 'jscript runtime error object expected'.

If I manually insert the function in the html form, the control works fine.

Is there a way to resolve this issue?

thanks,

Ricardo


Quantcast