Problem, Element script is missing an attribute

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

hi

..NET 3.5

In my code the "script" of "<script language="javascript">" gets underline
with a red line. When I hover the mouse over it, it says: Element script is
missing an attribute

<script language="javascript">

</script>

any suggestions?
 
okay it was missing runat="server"

So I changed it to this:
<script runat="server">
function OnClick()
{
}
</server>

but now I get an error saying the type or namespace function could not be
found

any suggestions?
 
Back
Top