Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > JavaScript Src attrubute in ascx

Reply
Thread Tools

JavaScript Src attrubute in ascx

 
 
New User
Guest
Posts: n/a
 
      11-26-2003
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

 
Reply With Quote
 
 
 
 
Victor Garcia Aprea [MVP]
Guest
Posts: n/a
 
      11-26-2003
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
"New User" <(E-Mail Removed)> wrote in message
news:11e901c3b436$08fb33a0$(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
 
 
 
New User
Guest
Posts: n/a
 
      12-01-2003
It is an attribute in JavaScript to include external
javascript file. It does not work in ASCX control.

>-----Original Message-----
>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
>"New User" <(E-Mail Removed)> wrote

in message
>news:11e901c3b436$08fb33a0$(E-Mail Removed)...
>> 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
>>

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Java Src to J2ME Src? macbrando@gmail.com Java 1 03-23-2007 01:29 PM
<txt src= ...> equivalent of <img src= ...> Steve Richter ASP .Net 3 02-09-2006 08:44 PM
Set "hidden, system" file attrubute? alex ASP .Net 2 12-20-2005 08:04 PM
Javascript Src Ascx New User ASP .Net 2 12-01-2003 07:13 PM
src.jar (src.zip) missing on Mac OSX Java 1.4.1 installation? Greg Johnson Java 4 09-18-2003 07:21 AM



Advertisments