JavaScript in ASP.NET

  • Thread starter Thread starter Jenny
  • Start date Start date
J

Jenny

Hi all,

where can I find a good introduction on adding JavaScript
dynamical to my asp.net page? All books about asp.net
contain only little information on this!

Thx

Jenny
 
Don't forget, if your javascript block must be in the Body of the page, you
can still use <% Response.Write("<script> ... </script>") %> blocks in
the body. If you output your script in Page_load, it won't go into the body.
What do you want to know?

Justin Dutoit
 
Hi Justin,

thanks for answer. A code example would be helpful. I'm
adding a button dynamical to my page (into a panel).

If this button is clicked I like a popup to be shown! Do
you know an easy example for me to try it?

Thanks

Jenny
 
Jenny,

If you want I've got a javascript object (and many others) all including the
project source code and all for free that you can download from my web site,
www.aboutfortunate.com.

It lets you add javascript pop up boxes and confirmations to buttons (or
almost any other .net object). It also has code for setting default buttons
if the enter key is pressed while in a text box to allow the same
functionality you used to have in asp when you could create multiple forms
on a single page.

Most of the objects can be placed in your toolbox. And I've also created
intellisense for all the projects I have on the site and a help file.

Even if you decide not to use the objects themselves, the source code is
good to learn from.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
Back
Top