s JavaScript in ASP.NET page trouble
-
Hi. I have index.aspx with the following content:
<%@ Page Language="C#" ContentType="text/html" %> Untitled Document Hooray
Here stm31.js and mainmenu.js are scripts, which draws menu. When i try to open this page in browser i get an error in browser and my menu is not displayed (but "Hooray" is). The source of generated page is:Untitled Document Hooray
And when I make a simple .htm with this html-code I can view my menu in browser. What I do wrong in my asp script and what i have to do to correct my mistake? -- Digitally yours, Bounz -
Hi. I have index.aspx with the following content:
<%@ Page Language="C#" ContentType="text/html" %> Untitled Document Hooray
Here stm31.js and mainmenu.js are scripts, which draws menu. When i try to open this page in browser i get an error in browser and my menu is not displayed (but "Hooray" is). The source of generated page is:Untitled Document Hooray
And when I make a simple .htm with this html-code I can view my menu in browser. What I do wrong in my asp script and what i have to do to correct my mistake? -- Digitally yours, Bounz -
You are missing the html tag and the title tag. The language property of the script tag is deprecated in htlm 4, just use the type propery. --- b { font-weight: normal; }
-
Hm-m. Even with html and title tag i have the same error.. Now asp script looks like:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> Untitled Page !!
-- Digitally yours, BounzI found some bug (or it's no bug) but this page cannot be displayed properly because of some symbols, which appears in html-code, returned by IIS. So, we have the first line:

As you see, before we have 3 odd symbols. Where are they from and how can I get them out of there? -- Digitally yours, Bounz -
I found some bug (or it's no bug) but this page cannot be displayed properly because of some symbols, which appears in html-code, returned by IIS. So, we have the first line:

As you see, before we have 3 odd symbols. Where are they from and how can I get them out of there? -- Digitally yours, Bounz