Hi,
With asp, I used to use the following line
<Script language="javascript" src="<%=JsFile%>"></script>
I would like to know how this can be done with asp.net ?
Thanks
Stan 6 1097
<script language="javascript" src="script.js"></script>
Eliyahu
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message
news:uW**************@TK2MSFTNGP11.phx.gbl... Hi,
With asp, I used to use the following line <Script language="javascript" src="<%=JsFile%>"></script>
I would like to know how this can be done with asp.net ?
Thanks
Stan
you can still use the same with asp.net. but JsFile needs to be hardcoded
properly. Or if you want to come out of the ASP world completely,
use user controls in place of include files.
Av.
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message
news:uW**************@TK2MSFTNGP11.phx.gbl... Hi,
With asp, I used to use the following line <Script language="javascript" src="<%=JsFile%>"></script>
I would like to know how this can be done with asp.net ?
Thanks
Stan
Hi Eliyahu,
it is not what I m really looking for..
In fact, jsfile is a variable...
So, it would be something like this..
<script id="JSFILE" language="javascript" runat="server"></script>
and I would like to change the src tag like this
JSFILE.src.value=myvariable
So I don't know if it's possible..
and if it's, how to declare the ID in the asp.vb file
Stan
"Eliyahu Goldin" <re*************@monarchmed.com> a écrit dans le message de
news: #$*************@TK2MSFTNGP10.phx.gbl... <script language="javascript" src="script.js"></script>
Eliyahu
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message news:uW**************@TK2MSFTNGP11.phx.gbl... Hi,
With asp, I used to use the following line <Script language="javascript" src="<%=JsFile%>"></script>
I would like to know how this can be done with asp.net ?
Thanks
Stan
A GenericControl in the worst case. You could also use the
RegisterClientScript method (not sure of the exact name) to "inject" this
script block in the HTML output, especially if this script is needed by a
particular "component" of your app.
Patrice
"Stan Sainte-Rose" <st**@cyber972.com> a écrit dans le message de
news:um**************@TK2MSFTNGP09.phx.gbl... Hi Eliyahu,
it is not what I m really looking for.. In fact, jsfile is a variable...
So, it would be something like this.. <script id="JSFILE" language="javascript" runat="server"></script>
and I would like to change the src tag like this
JSFILE.src.value=myvariable
So I don't know if it's possible.. and if it's, how to declare the ID in the asp.vb file
Stan
"Eliyahu Goldin" <re*************@monarchmed.com> a écrit dans le message
de news: #$*************@TK2MSFTNGP10.phx.gbl... <script language="javascript" src="script.js"></script>
Eliyahu
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message news:uW**************@TK2MSFTNGP11.phx.gbl... Hi,
With asp, I used to use the following line <Script language="javascript" src="<%=JsFile%>"></script>
I would like to know how this can be done with asp.net ?
Thanks
Stan
Sorry for not reading your mail properly.
You can set the src tag on client side with statement
document.getElementById("JSFILE").src=myvariable;
There are numerous ways of passing values from server to client side, so
setting myvariable to what you need is not a problem.
Eliyahu
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message
news:um**************@TK2MSFTNGP09.phx.gbl... Hi Eliyahu,
it is not what I m really looking for.. In fact, jsfile is a variable...
So, it would be something like this.. <script id="JSFILE" language="javascript" runat="server"></script>
and I would like to change the src tag like this
JSFILE.src.value=myvariable
So I don't know if it's possible.. and if it's, how to declare the ID in the asp.vb file
Stan
"Eliyahu Goldin" <re*************@monarchmed.com> a écrit dans le message
de news: #$*************@TK2MSFTNGP10.phx.gbl... <script language="javascript" src="script.js"></script>
Eliyahu
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message news:uW**************@TK2MSFTNGP11.phx.gbl... Hi,
With asp, I used to use the following line <Script language="javascript" src="<%=JsFile%>"></script>
I would like to know how this can be done with asp.net ?
Thanks
Stan
I thank you Eliyahu & Patrice..
I ve found something.. http://www.ondotnet.com/pub/a/dotnet...15/aspnet.html
Stan
"Eliyahu Goldin" <re*************@monarchmed.com> a écrit dans le message de
news: ee**************@TK2MSFTNGP09.phx.gbl... Sorry for not reading your mail properly. You can set the src tag on client side with statement
document.getElementById("JSFILE").src=myvariable;
There are numerous ways of passing values from server to client side, so setting myvariable to what you need is not a problem.
Eliyahu
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message news:um**************@TK2MSFTNGP09.phx.gbl... Hi Eliyahu,
it is not what I m really looking for.. In fact, jsfile is a variable...
So, it would be something like this.. <script id="JSFILE" language="javascript" runat="server"></script>
and I would like to change the src tag like this
JSFILE.src.value=myvariable
So I don't know if it's possible.. and if it's, how to declare the ID in the asp.vb file
Stan
"Eliyahu Goldin" <re*************@monarchmed.com> a écrit dans le
message de news: #$*************@TK2MSFTNGP10.phx.gbl... <script language="javascript" src="script.js"></script>
Eliyahu
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message news:uW**************@TK2MSFTNGP11.phx.gbl... > Hi, > > With asp, I used to use the following line > <Script language="javascript" src="<%=JsFile%>"></script> > > I would like to know how this can be done with asp.net ? > > > Thanks > > Stan > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mescaline |
last post by:
Hi,
Suppose a_file.cpp contains a function a_function()
Now to include it in main_file.cpp I just do #include "a_file.cpp" and
I'm all set.
i recently came across this seemingly roundabout...
|
by: wukexin |
last post by:
Help me, good men. I find mang books that introduce bit "mang header
files",they talk too bit,in fact it is my too fool, I don't learn it, I have
do a test program, but I have no correct doing...
|
by: Ramesh |
last post by:
Hi,
I am currently maintaining a legacy code with a very very large code base.
I am facing problems with C/C++ files having a lot of un-necessary #includes.
On an average every C/C++ file has...
|
by: Derrick Coetzee |
last post by:
It seems like, in every C source file I've ever seen, there has been a
very definite include order, as follows:
- include system headers
- include application headers
- include the header...
|
by: bill |
last post by:
Forget the exact definition of difference between,
#include <foo.h>
and
#include "bar.h"
Normally foo.h is a standard header file, so it's path is not defined
in compiler option, but I...
|
by: Francois Grieu |
last post by:
Can #include safely use a preprocessing token, as in
#define HEADERFILE "stdio.h"
#include HEADERFILE
int main(void) {return printf("Hello, world\n")*0;}
TIA,
François Grieu
|
by: zolli |
last post by:
Hi,
I've been banging my head against this for a while now. Hoping someone
here can shed some light on what's going on.
On including stdlib.h in a file, I'm seeing the following errors:
...
|
by: David Mathog |
last post by:
One thing that can make porting C code from one
platform to another miserable is #include. In particular,
the need to either place the path to an included file within
the #include statement or to...
|
by: Arpi Jakab |
last post by:
I have a main project that depends on projects A and B. The main project's
additional include directories list is:
...\ProjectA\Dist\Include
...\ProjectB\Dist\Include
Each of the include...
|
by: tshad |
last post by:
In my User control, I tried to do this:
***************************************************************************
<Script runat="server">
Public ClientName As String = "<!-- #include file =...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |