javascript code inside aspx or ascx file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H

I know how to use javascript, like in oblect.attributes.add, or as a user control, and so on
But I want to use javascript code like a response to an event - for sample I only want to
open an alert box if no text was entered in a textbox, like using a messagebox in win de
as a response to user inputs
Is this only possible with user events/delegates, or can anyone help me out there

Best regard
Harald
 
Hi

Will the following type of code snippet work for you?

On response of event you can write javascript code like this.

Response.Write("<script>alert('display something');</script>")

Ravikanth[MVP]
 
Back
Top