Get used to not using include files with .NET. Use <script
language="javascript" type="text/javascript" src="~/md5.js" /> instead.
This would be in the page content, by the way, not the code behind.
"Justin" <Ju****@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.com...
So, I can use <!-- #include File="md5.js" --> in the C# code behind or do
I
have to put it in the .ASPX header? I the later is the case how does the
c#
code access the js file?
"Marina" wrote:
You can still include files.
You can also do it by declaring a script block and setting its source to
a
JS file.
"Justin" <Ju****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com... > I am using asp.net with a C# code behind and I need to figure out how
> to
> include a javascript file for use with my code.
>
> It was simple to do this in classic ASP: <!-- #include
> File="md5.js" -->
>
> Is there a similar way in ASP.NET?
>
> Thanks, Justin.