471,336 Members | 1,253 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,336 software developers and data experts.

Client Script in a Web User Control

I have an asp.net web page with a user control within it. I need to run some
javascript when a button, that is on the user control, is pressed. The
javascript does not run if the script is on the parent page or within the
user control. Is this possible with VB.NET 2003? How can I do it?

Thanks
Jul 28 '05 #1
1 1780
It is not possible or atleast not that easy. Why dont you have your
javascripts in one folder from where you can call it's methods from any web
page where you wanna run the script. Probably the following link answers your
question:

http://www.dotnet247.com/247referenc...2CB8A36E0.dcik

Good luck!
--
Rajesh
MCSD.NET
http://meenrajan.blogspot.com
"sperotti" wrote:
I have an asp.net web page with a user control within it. I need to run some
javascript when a button, that is on the user control, is pressed. The
javascript does not run if the script is on the parent page or within the
user control. Is this possible with VB.NET 2003? How can I do it?

Thanks

Jul 29 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jim Hammond | last post: by
4 posts views Thread by Barb | last post: by
12 posts views Thread by ShepardBerry | last post: by
5 posts views Thread by John A Grandy | last post: by
3 posts views Thread by David Davis | last post: by
reply views Thread by skberen | last post: by
4 posts views Thread by Olivier Matrot | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.