JavaScript Src attrubute in ascx

N

New User

I have a System.Web.UI.UserControl as custom control and
I have a javascript block for user control. The problem
is I want to bring src attribute from outside as property
or other method.

e.g <script language="JavaScript"
src="Scripts/filename.js"></script>

When I register this control (drop control) on aspx page
different than current folder in other words, when I have
aspx page few level down from root asp.net application
the src attribute does not work. Any ideas.... I am
really new to asp.net
 
V

Victor Garcia Aprea [MVP]

Hi,

I'm not sure I'm following your explanation. You want to add a "Src"
property to your usercontrol? What do you mean by the 'src' attribute not
working? Please provide some more details in order to help the guessing
game.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
 
N

New User

It is an attribute in JavaScript to include external
javascript file. It does not work in ASCX control.
 

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

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top