This is the error I am getting can you guide me in the right direction
SCRIPT5009: 'Text1_onclick' is undefined
HTMLPage1.htm, line 30 character 66
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" >
<head>
<title>Paycheck</title>
</head>
<body>
<script runat="server" >
function Text1_onclick() {
}
function Text2_onclick() {
}
void Submit1_onclick(object sender, EventArgs e) {
if (Text1.Value.Length < 1)
{
Response.Write("Please Enter a value in Hours Field ");
}
else if(Text2.Value.Length < 1)
{
MessageBox.Show("Please Enter a value in Pay Rate Field");
}
else
{
double hours = Convert.ToDouble(textBox1.
Text);
double rate = Convert.ToDouble(textBox2.
Text);
MessageBox.Show(string.For
mat("Your Gross Pay is $ {0}" ,hours - 40 * rate * 1.5));
}
</script>
<form action="Default.aspx" method="post">
<p>Enter Hours Worked:<input id="Text1" type="text" onclick="return Text1_onclick()" /></p>
<p>Enter Pay Rate:<input id="Text2" type="text" onclick="return Text2_onclick()" /></p>
<p><input id="Submit1" type="submit" value="submit" onServerClick="Submit1_onc
lick" /></p>
</form>
</body>
</html>