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]
 
Hi Ravikant

That works well enough

Thanks a lot and a nice wekkend
Harald
 

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

Back
Top