Client side script breaks after postback?

G

Guest

Hi all

I have a server side textbox on my page that has an OnBlur event that calls a vbscript function which validates the textbox (checks for a valid date) when the user leaves the control. If the date is not valid it shows a message and empties the contents of the textbox. The vbscript is registered in my page_Onload. When the page first loads this works fine, but after a postback to the server I get an error saying 'Object required Text1' , almost as if when the page is posted back it loses reference to my textBox. Does anyone have any idea why

Thanks in advance for any help with thi

Kur
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top