Error: Object Expected

A

avanti

HI,

I have an ASP page with some Javascript code. The JS has several
functions and only some of them work. Here is part of the code:

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server" id="Head1">
<title>Title</title>
<Ctrl:stylesheets id="Css1" runat="server" />
<script language="javascript" type="text/javascript">
function SetSecurityCode()
{
Alert("Hello");
}
</script>

.............

<CoreCtrl:Controls.WebControls.HyperLink id="CodeLink" Text="Set
Value" CssClass="textSmall" OnClick="SetSecurityCode();" Href="#"
runat="server" />

I am seeing Error:Object Expected on the alert line in the JS function.
Some other functions inside the script work as expected.

Any clues?

Thanks,
Avanti
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top